Updating FormHelper to fix failing test from merge.

This commit is contained in:
Mark Story 2010-10-31 21:57:51 -04:00
parent 08e7bcb7ab
commit b67d3fac44

View file

@ -1778,7 +1778,7 @@ class FormHelper extends AppHelper {
$year = $month = $day = $hour = $min = $meridian = null;
if (empty($attributes['value'])) {
$attributes['value'] = $this->value($fieldName);
$attributes = $this->value($attributes, $fieldName);
}
if ($attributes['value'] === null && $attributes['empty'] != true) {