View Issue Details

IDProjectCategoryView StatusLast Update
0012910mantisbthtmlpublic2011-04-05 14:23
Reporterjustabaka Assigned Todhx  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version1.2.4 
Target Version1.2.5Fixed in Version1.2.5 
Summary0012910: due_date is limited to 10 characters in Opera and Chrome
Description

For some reason, Opera and Chrome are checking the maxlength. In Opera, this process does not block anything, but in Chrome you must delete a few characters in order to proceed with the form submission.

The screenshot is in Russian, but here's a translation (Google Chrome):
Text length should not exceed 10 characters (now: 16 characters).

Steps To Reproduce

Open google chrome and try to create a new issue with a due_date set up.

Additional Information

This happens because of this code:

bug_report_page.php @ 252:

print "<input ".helper_get_tab_index()." type=\"text\" id=\"due_date\" name=\"due_date\" size=\"20\" maxlength=\"10\" value=\"".$t_date_to_display."\" />";

maxlength should be changed to 16

Tagspatch
Attached Files
due_date_maxlength.png (110,883 bytes)   
due_date_maxlength.png (110,883 bytes)   

Relationships

has duplicate 0013008 closedatrol Due date picked from calendar causes validation error when changing bug status 

Activities

dhx

dhx

2011-04-05 09:38

reporter   ~0028533

Checked for all instances of this bug in the source code using:

grep -RnP "(due_date|datetime).+?maxlength" *

I've applied a patch to both 1.2.x and 1.3.x branches to increase the maximum length to 16. Thank you for the bug report!

Related Changesets

MantisBT: master 28cc18dc

2011-04-05 09:33

dhx


Details Diff
Fix 0012910: due_date input field maxlength parameter should be larger

The maxlength parameter for the due_date input field should be 16
characters in length to match the format: "2011-04-05 00:00"
Affected Issues
0012910
mod - bug_change_status_page.php Diff File
mod - bug_update_advanced_page.php Diff File
mod - bug_report_page.php Diff File

MantisBT: master-1.2.x 0d7a6f46

2011-04-05 09:33

dhx


Details Diff
Fix 0012910: due_date input field maxlength parameter should be larger

The maxlength parameter for the due_date input field should be 16
characters in length to match the format: "2011-04-05 00:00"
Affected Issues
0012910
mod - bug_change_status_page.php Diff File
mod - bug_report_page.php Diff File