Browse Source

added missing default to getValue in boostrap tabs

fixes #465
tags/2.0.0-beta
Carsten Brandt 12 years ago
parent
commit
0d34aab0ab
  1. 2
      framework/yii/bootstrap/Tabs.php

2
framework/yii/bootstrap/Tabs.php

@ -132,7 +132,7 @@ class Tabs extends Widget
$header = Html::a($label, "#", array('class' => 'dropdown-toggle', 'data-toggle' => 'dropdown')) . "\n" $header = Html::a($label, "#", array('class' => 'dropdown-toggle', 'data-toggle' => 'dropdown')) . "\n"
. Dropdown::widget(array('items' => $item['items'], 'clientOptions' => false)); . Dropdown::widget(array('items' => $item['items'], 'clientOptions' => false));
} elseif (isset($item['content'])) { } elseif (isset($item['content'])) {
$options = array_merge($this->itemOptions, ArrayHelper::getValue($item, 'options')); $options = array_merge($this->itemOptions, ArrayHelper::getValue($item, 'options', array()));
$options['id'] = ArrayHelper::getValue($options, 'id', $this->options['id'] . '-tab' . $n); $options['id'] = ArrayHelper::getValue($options, 'id', $this->options['id'] . '-tab' . $n);
$this->addCssClass($options, 'tab-pane'); $this->addCssClass($options, 'tab-pane');

Loading…
Cancel
Save