Commit 807d03f3 authored by Shakarim Sapa's avatar Shakarim Sapa

Добавлены проверки на существование ключа

parent b5098ab0
......@@ -195,7 +195,7 @@ JS;
case 'email':
$tmp = $this->field($this->model, $key, $optEl)->input($element['type'], $opt);
if(!empty($element['hint'])) $tmp = $tmp->hint($element['hint']);
if($element['options']['label'] === false) $tmp = $tmp->label(false);
if(array_key_exists('options', $element) && $element['options']['label'] === false) $tmp = $tmp->label(false);
$config['options'][] = $tmp;
break;
case 'password':
......@@ -216,7 +216,7 @@ JS;
//$optEl['template'] = '{label}<div class="col-md-8">{input}</div>{error}{hint}';
$tmp = $this->field($this->model, $key, $optEl)->dropDownList($element['items'],$opt);
if(!empty($element['hint'])) $tmp = $tmp->hint($element['hint']);
if($element['options']['label'] === false) $tmp = $tmp->label(false);
if(array_key_exists('options', $element) && $element['options']['label'] === false) $tmp = $tmp->label(false);
$config['options'][] = $tmp;
break;
case 'listBox':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment