mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-04 06:37:55 +08:00
Update ActiveField.php
Used Html instead BaseHtml
This commit is contained in:
committed by
GitHub
parent
12afecf9ce
commit
d0a6302b37
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user