mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-16 15:21:13 +08:00
Fixes #2624: Html::textArea() should respect "name" option.
This commit is contained in:
@ -51,6 +51,7 @@ Yii Framework 2 Change Log
|
|||||||
- Bug #2527: Source language for `app` message category was always `en` no matter which application `sourceLanguage` was used (samdark)
|
- Bug #2527: Source language for `app` message category was always `en` no matter which application `sourceLanguage` was used (samdark)
|
||||||
- Bug #2559: Going back on browser history breaks GridView filtering with `Pjax` (tonydspaniard)
|
- Bug #2559: Going back on browser history breaks GridView filtering with `Pjax` (tonydspaniard)
|
||||||
- Bug #2607: `yii message` tool wasn't updating `message` table (mitalcoi)
|
- Bug #2607: `yii message` tool wasn't updating `message` table (mitalcoi)
|
||||||
|
- Bug #2624: Html::textArea() should respect "name" option. (qiangxue)
|
||||||
- Bug: Fixed `Call to a member function registerAssetFiles() on a non-object` in case of wrong `sourcePath` for an asset bundle (samdark)
|
- Bug: Fixed `Call to a member function registerAssetFiles() on a non-object` in case of wrong `sourcePath` for an asset bundle (samdark)
|
||||||
- Bug: Fixed incorrect event name for `yii\jui\Spinner` (samdark)
|
- Bug: Fixed incorrect event name for `yii\jui\Spinner` (samdark)
|
||||||
- Bug: Json::encode() did not handle objects that implement JsonSerializable interface correctly (cebe)
|
- Bug: Json::encode() did not handle objects that implement JsonSerializable interface correctly (cebe)
|
||||||
|
@ -1140,12 +1140,12 @@ class BaseHtml
|
|||||||
* about attribute expression.
|
* about attribute expression.
|
||||||
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
|
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
|
||||||
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
|
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
|
||||||
* See [[renderTagAttributes()]] for details on how these are beeing rendered.
|
* See [[renderTagAttributes()]] for details on how these are being rendered.
|
||||||
* @return string the generated textarea tag
|
* @return string the generated textarea tag
|
||||||
*/
|
*/
|
||||||
public static function activeTextarea($model, $attribute, $options = [])
|
public static function activeTextarea($model, $attribute, $options = [])
|
||||||
{
|
{
|
||||||
$name = static::getInputName($model, $attribute);
|
$name = isset($options['name']) ? $options['name'] : static::getInputName($model, $attribute);
|
||||||
$value = static::getAttributeValue($model, $attribute);
|
$value = static::getAttributeValue($model, $attribute);
|
||||||
if (!array_key_exists('id', $options)) {
|
if (!array_key_exists('id', $options)) {
|
||||||
$options['id'] = static::getInputId($model, $attribute);
|
$options['id'] = static::getInputId($model, $attribute);
|
||||||
|
Reference in New Issue
Block a user