Skip to content

Commit

Permalink
Fix #12910: due_date input field maxlength parameter should be larger
Browse files Browse the repository at this point in the history
The maxlength parameter for the due_date input field should be 16
characters in length to match the format: "2011-04-05 00:00"
  • Loading branch information
davidhicks committed Apr 5, 2011
1 parent 8cf11fb commit 28cc18d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bug_change_status_page.php
Expand Up @@ -237,7 +237,7 @@
<?php print_documentation_link( 'due_date' ) ?>
</th>
<td>
<?php echo "<input " . helper_get_tab_index() . " type=\"text\" id=\"due_date\" name=\"due_date\" class=\"datetime\" size=\"20\" maxlength=\"10\" value=\"" . $t_date_to_display . "\" />" ?>
<?php echo "<input " . helper_get_tab_index() . " type=\"text\" id=\"due_date\" name=\"due_date\" class=\"datetime\" size=\"20\" maxlength=\"16\" value=\"" . $t_date_to_display . "\" />" ?>
</td>
</tr>
<?php } ?>
Expand Down
2 changes: 1 addition & 1 deletion bug_report_page.php
Expand Up @@ -304,7 +304,7 @@
<label for="due_date"><?php print_documentation_link( 'due_date' ) ?></label>
</th>
<td>
<?php echo "<input " . helper_get_tab_index() . " type=\"text\" id=\"due_date\" name=\"due_date\" class=\"datetime\" size=\"20\" maxlength=\"10\" value=\"" . $t_date_to_display . "\" />" ?>
<?php echo "<input " . helper_get_tab_index() . " type=\"text\" id=\"due_date\" name=\"due_date\" class=\"datetime\" size=\"20\" maxlength=\"16\" value=\"" . $t_date_to_display . "\" />" ?>
</td>
</tr>
<?php } ?>
Expand Down
2 changes: 1 addition & 1 deletion bug_update_advanced_page.php
Expand Up @@ -316,7 +316,7 @@
if ( !date_is_null( $tpl_bug->due_date ) ) {
$t_date_to_display = date( config_get( 'calendar_date_format' ), $tpl_bug->due_date );
}
echo "<input " . helper_get_tab_index() . " type=\"text\" id=\"due_date\" name=\"due_date\" class=\"datetime\" size=\"20\" maxlength=\"10\" value=\"" . $t_date_to_display . "\" />";
echo "<input " . helper_get_tab_index() . " type=\"text\" id=\"due_date\" name=\"due_date\" class=\"datetime\" size=\"20\" maxlength=\"16\" value=\"" . $t_date_to_display . "\" />";
} else {
if ( !date_is_null( $tpl_bug->due_date ) ) {
echo date( config_get( 'short_date_format' ), $tpl_bug->due_date );
Expand Down

0 comments on commit 28cc18d

Please sign in to comment.