Browse Source

Fixes #1326: DetailView: visibility of the attribute

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
19bffa38c8
  1. 4
      framework/yii/widgets/DetailView.php

4
framework/yii/widgets/DetailView.php

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

Loading…
Cancel
Save