Defect #12833
closedInput fields restricted on length should have maxlength parameter set
0%
Description
When entering the subject of a ticket/issue or writing a comment in the timelog, you can enter as many characters in the input field as you want. But if you entered more then 255 characters, this will give an error later when sending it to the redmine instance ("... too long (maximum 255 characters)").
It would be better if the HTML input field already has the maxlength parameter set to 255 then. Having this parameter set, you cannot enter more than maxlength characters into the input field. Thus, the user would immediately recognize that he cannot enter more characters instead of getting an error later when he already typed the too long input.
I just checked for the 2 mentioned input fields, there are probably a lot more of them.
Files
Updated by Daniel Felix almost 12 years ago
- File setMaximumLenght.diff setMaximumLenght.diff added
Hi,
I've attached a small patch which corrects this for timelog comments and issue subjects.
Best regards,
Daniel
Updated by Harald Glock almost 12 years ago
Thanks Daniel.
Applied the patch with small change to redmine-2.1.4 (line no in app/views/timelog/_form.html.erb has changed since 2.1.4) and it works as expected.
Hope it will make it into redmine.
Updated by Daniel Felix almost 12 years ago
- Status changed from New to Resolved
- Target version set to Candidate for next minor release
- Resolution set to Fixed
Updated by Daniel Felix almost 12 years ago
- Target version changed from Candidate for next minor release to 2.2.2