Skip to content

Commit

Permalink
Use disabled option to exclude date/datetime inputs from secure list.
Browse files Browse the repository at this point in the history
This is a temporary solution until the widget layer can be refactored.
  • Loading branch information
markstory committed May 27, 2014
1 parent 550f267 commit d70eedc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/View/Helper/FormHelper.php
Expand Up @@ -1955,6 +1955,9 @@ public function dateTime($fieldName, array $options = array()) {
'second' => false,
];
$secure = true;
if (!empty($options['disabled'])) {
$secure = false;
}
if (isset($options['secure'])) {
$secure = $options['secure'];
}
Expand Down Expand Up @@ -2093,6 +2096,9 @@ public function date($fieldName, array $options = []) {
$options['meridian'] = $options['second'] = false;

$secure = true;
if (!empty($options['disabled'])) {
$secure = false;
}
if (isset($options['secure'])) {
$secure = $options['secure'];
}
Expand Down

0 comments on commit d70eedc

Please sign in to comment.