From d0a6302b375a6cfa9dd9023e6dba12bd1c160e31 Mon Sep 17 00:00:00 2001 From: Fabrizio Caldarelli Date: Thu, 1 Mar 2018 08:05:25 +0100 Subject: [PATCH] Update ActiveField.php Used Html instead BaseHtml --- 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 c1d6b04f21..9fc870ef74 100644 --- a/framework/widgets/ActiveField.php +++ b/framework/widgets/ActiveField.php @@ -931,7 +931,7 @@ class ActiveField extends Component protected function addErrorClassIfNeeded(&$options) { // Get proper attribute name when attribute name is tabular. - $attributeName = yii\helpers\BaseHtml::getAttributeName($this->attribute); + $attributeName = yii\helpers\Html::getAttributeName($this->attribute); if ($this->model->hasErrors($attributeName)) { Html::addCssClass($options, $this->form->errorCssClass);