Skip to content

Commit

Permalink
Merge pull request #173 from DSchalla/date-null
Browse files Browse the repository at this point in the history
Remove unnecessary attribute from date inputs (Closes #35)
  • Loading branch information
markstory committed Oct 31, 2015
2 parents b9175f5 + ddece98 commit a7d5ed3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Template/Bake/Element/form.ctp
Expand Up @@ -74,7 +74,7 @@ $fields = collection($fields)
$fieldData = $schema->column($field);
if (($fieldData['type'] === 'date') && (!empty($fieldData['null']))) {
%>
echo $this->Form->input('<%= $field %>', ['empty' => true, 'default' => '']);
echo $this->Form->input('<%= $field %>', ['empty' => true]);
<%
} else {
%>
Expand Down

0 comments on commit a7d5ed3

Please sign in to comment.