Skip to content

Commit

Permalink
Also fix hour()
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Scherer committed Apr 20, 2015
1 parent 3ba4308 commit 8cdf222
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/Cake/View/Helper/FormHelper.php
Expand Up @@ -2315,6 +2315,11 @@ public function month($fieldName, $attributes = array()) {
* @link http://book.cakephp.org/2.0/en/core-libraries/helpers/form.html#FormHelper::hour
*/
public function hour($fieldName, $format24Hours = false, $attributes = array()) {
if (is_array($format24Hours)) {
$attributes = $format24Hours;
$format24Hours = null;
}

$attributes += array('empty' => true, 'value' => null);
$attributes = $this->_dateTimeSelected('hour', $fieldName, $attributes);

Expand Down

0 comments on commit 8cdf222

Please sign in to comment.