Skip to content
Permalink
Browse files

fixes fatal error in line 2879

  • Loading branch information...
darxmac committed Feb 16, 2014
1 parent faf67c8 commit d9df606e2e2329dbc644c6c3436bab437ee021ac
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/View/Helper/FormHelper.php
@@ -2869,14 +2869,15 @@ protected function _initInputField($field, $options = []) {
if (isset($options['value']) && !isset($options['val'])) {
$options['val'] = $options['value'];
unset($options['value']);
}
if (!isset($options['val'])) {
$options['val'] = $context->val($field);
}
if (!isset($options['val']) && isset($options['default'])) {
$options['val'] = $options['default'];
unset($options['default']);
}
unset($options['value'], $options['default']);
$options += (array)$context->attributes($field);

0 comments on commit d9df606

Please sign in to comment.
You can’t perform that action at this time.