Permalink
Browse files

Add meridian in empty data case.

  • Loading branch information...
1 parent b1c0b87 commit 910c823e51f77a558d60864353517cba085d0c54 @markstory markstory committed Jan 24, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −1 src/View/Input/DateTime.php
  2. +0 −1 tests/TestCase/View/Input/DateTimeTest.php
@@ -175,7 +175,8 @@ protected function _deconstuctDate($value, $options) {
if (empty($value)) {
return [
'year' => '', 'month' => '', 'day' => '',
- 'hour' => '', 'minute' => '', 'second' => ''
+ 'hour' => '', 'minute' => '', 'second' => '',
+ 'meridian' => '',
];
}
if (is_string($value)) {
@@ -33,7 +33,6 @@ public function setUp() {
parent::setUp();
$templates = [
'select' => '<select name="{{name}}"{{attrs}}>{{content}}</select>',
- 'selectMultiple' => '<select name="{{name}}[]" multiple="multiple"{{attrs}}>{{content}}</select>',
'option' => '<option value="{{value}}"{{attrs}}>{{text}}</option>',
'optgroup' => '<optgroup label="{{label}}"{{attrs}}>{{content}}</optgroup>',
'dateWidget' => '{{year}}{{month}}{{day}}{{hour}}{{minute}}{{second}}{{meridian}}'

0 comments on commit 910c823

Please sign in to comment.