Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When selecting many dates you get an error
"Date cannot be longer than 512 characters but is currently 694 characters long."
Is it possible to increase the limit to be able to select many dates?
Comment | File | Size | Author |
---|---|---|---|
#1 | date_multiselect-length_increased-2540964-7.x-1.0.patch | 919 bytes | ajalan065 |
Comments
Comment #1
ajalan065 CreditAttribution: ajalan065 as a volunteer and at Innoraft commentedChanges has been made accordingly.
Hope it helps..
Comment #2
BarisW CreditAttribution: BarisW at LimoenGroen commentedWorks great. Please commit.
Comment #3
reinvented CreditAttribution: reinvented as a volunteer commentedNote that the patch does, indeed, increase the limit of the number of dates that can be selected by 4x, but there's still a limit, so if you need to increase the limit further, increase the number in:
'#maxlength' => 1024,
to a higher value.
Comment #5
jackbravo CreditAttribution: jackbravo commentedCommitted, Thanks!