Fixes #1326: DetailView: visibility of the attribute

This commit is contained in:
Qiang Xue
2013-11-26 08:44:57 -05:00
parent 2b9b364c5b
commit 19bffa38c8

View File

@ -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';
} }