Problem/Motivation
The admin form limits all 255 character fields to just 128.
Steps to reproduce
Visit the admin form, and attempt to fill out a field with more than 128 characters: The text editor prevents more than 128 characters, truncating longer content. Ex. idp_logout_url "IDP Logout URL"
Proposed resolution
In the code there is already an author intended `#max_length` of 255. This is a bug and should be (https://api.drupal.org/api/drupal/developer%21topics%21forms_api_referen...) `#maxlength`. The schema is also set to 255 and is ready to receive longer values.
Remaining tasks
Change occurrences of `#max_length` (sic) to `#maxlength` throughout the admin form.
User interface changes
(none)
API changes
(none)
Data model changes
(none)
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | textfield-maxlength-fapi-typo-3167200-3.patch | 1.6 KB | texas-bronius |
| #2 | textfield-maxlength-fapi-typo-3167200-2.patch | 1.16 KB | texas-bronius |
Comments
Comment #2
texas-bronius commentedLooking at 3.x, I see that the issue still persists, but it's a mix: Some fields have max_length (incorrect) some maxlength (correct).
Here's a patch for 7.x-2.0-beta4
Comment #3
texas-bronius commentedOne more patch for the same, this time chasing 7.x-3.x-dev (though it's marked as just "7.x-3.0" in the Version selector on this issue queue)
Comment #5
jrglasgow commented