From 59b56b312f59a26cdee4fb2ecf7b6ed262c359d6 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Sat, 17 Feb 2018 21:48:13 +0300 Subject: [PATCH] #15476: Fixed ActiveField initial error class in case setting it to input --- framework/widgets/ActiveField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/widgets/ActiveField.php b/framework/widgets/ActiveField.php index aea002e729..0a220d8daa 100644 --- a/framework/widgets/ActiveField.php +++ b/framework/widgets/ActiveField.php @@ -770,7 +770,7 @@ class ActiveField extends Component $config['field'] = $this; if (isset($config['options'])) { if ($this->form->validationStateOn === ActiveForm::VALIDATION_STATE_ON_INPUT) { - $this->addErrorClassIfNeeded($options); + $this->addErrorClassIfNeeded($config['options']); } $this->addAriaAttributes($config['options']);