mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-23 20:42:02 +08:00
Fixes #1326: DetailView: visibility of the attribute
This commit is contained in:
@ -186,6 +186,10 @@ class DetailView extends Widget
|
|||||||
throw new InvalidConfigException('The attribute configuration must be an array.');
|
throw new InvalidConfigException('The attribute configuration must be an array.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isset($attribute['visible']) && !$attribute['visible']) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (!isset($attribute['format'])) {
|
if (!isset($attribute['format'])) {
|
||||||
$attribute['format'] = 'text';
|
$attribute['format'] = 'text';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user