mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
"Adding fixes for Ticket #1785 hourOptionTag can never be empty
and Ticket #1792 dateTimeOptionTag hour is always set to 12 even if selected is null" git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4197 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
6776cc2e10
commit
14438cb151
1 changed files with 1 additions and 1 deletions
|
@ -898,7 +898,7 @@ class HtmlHelper extends AppHelper {
|
|||
$hourValue = empty($selected) ? ($showEmpty ? NULL : date('H')) : $selected;
|
||||
} else {
|
||||
$hourValue = empty($selected) ? ($showEmpty ? NULL : date('g')) : $selected;
|
||||
if (intval($hourValue) == 0 && !$showEmpty) {
|
||||
if (isset($selected) && intval($hourValue) == 0 && !$showEmpty) {
|
||||
$hourValue = 12;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue