Update ActiveField.php

Used Html instead BaseHtml
This commit is contained in:
Fabrizio Caldarelli
2018-03-01 08:05:25 +01:00
committed by GitHub
parent 12afecf9ce
commit d0a6302b37

View File

@ -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);