|
|
|
@ -373,11 +373,11 @@ class ActiveField extends \yii\widgets\ActiveField
|
|
|
|
|
unset($options['label']); |
|
|
|
|
} else { |
|
|
|
|
$attribute = Html::getAttributeName($this->attribute); |
|
|
|
|
$label = $this->model->getAttributeLabel($attribute); |
|
|
|
|
$label = Html::encode($this->model->getAttributeLabel($attribute)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
$this->parts['{beginLabel}'] = Html::beginTag('label', $options); |
|
|
|
|
$this->parts['{endLabel}'] = Html::endTag('label'); |
|
|
|
|
$this->parts['{labelTitle}'] = Html::encode($label); |
|
|
|
|
$this->parts['{labelTitle}'] = $label; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|