mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-01 11:39:41 +08:00
Fix #17793: Fix inconsistent handling of null data attribute values in yii\helpers\BaseHtml::renderTagAttributes()
This commit is contained in:
committed by
Alexander Makarov
parent
7e471e3010
commit
beca7b45d3
@ -1961,7 +1961,7 @@ class BaseHtml
|
||||
if ($v) {
|
||||
$html .= " $name-$n";
|
||||
}
|
||||
} else {
|
||||
} elseif ($v !== null) {
|
||||
$html .= " $name-$n=\"" . static::encode($v) . '"';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user