Defect #27330

"Name" field in the 'edit version' form has no "maxlength"

Added by Vasili Korol 18 days ago. Updated 18 days ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:UI
Target version:-
Resolution: Affected version:3.4.3

Description

  1. Edit a version (project settings -> versions -> "Edit" some version in the list)
  2. try to input a long "name" in the form (>60 characters)
  3. click "Save"
  4. A request is sent to the server; as the result, the form complains about "Name is too long (maximum is 60 characters)".

The <input> tag for version name should have attribute maxlength set to "60". Then the content of that field will naturally be limited to 60 characters.

I attach a patch for this (created on trunk r17016).

version_form_name_maxlength.diff Magnifier (586 Bytes) Vasili Korol, 2017-10-30 16:02

version_form_name_maxlength_v2.patch Magnifier - CORRECTED (643 Bytes) Vasili Korol, 2017-10-30 16:10

History

#1 Updated by Vasili Korol 18 days ago

Sorry, the first patch i attached was created in the wrong folder (and thus contains wrong path to the modified file).
I now attach the corrected patch, created from the root folder of the Redmine repo.

Also available in: Atom PDF