Defect #27330

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

Added by Vasili Korol over 1 year ago. Updated 4 months ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:

0%

Category:UI
Target version:4.1.0
Resolution:Fixed 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

Associated revisions

Revision 17746
Added by Jean-Philippe Lang 4 months ago

Adds maxlength to version name input (#27330).

Patch by Vasili Korol.

History

#1 Updated by Vasili Korol over 1 year 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.

#2 Updated by Toshi MARUYAMA over 1 year ago

  • Target version set to 4.1.0

#3 Updated by Jean-Philippe Lang 4 months ago

  • Status changed from New to Closed
  • Assignee set to Jean-Philippe Lang
  • Resolution set to Fixed

Committed, thanks.

Also available in: Atom PDF