Browse Source

Fixes #130: Fixed `yii\bootstrap\Collapse` to use pure numerical value on `content` property

tags/2.0.7
Meysam 9 years ago committed by Alexander Makarov
parent
commit
61ff144457
  1. 1
      CHANGELOG.md
  2. 2
      Collapse.php

1
CHANGELOG.md

@ -5,6 +5,7 @@ Yii Framework 2 bootstrap extension Change Log
-----------------------
- Bug #126: `yii\bootstrap\ToggleButtonGroup` was unable to work without model (makroxyz)
- Bug #130: Fixed `yii\bootstrap\Collapse` to use pure numerical value on `content` property (meysampg)
2.0.6 March 17, 2016
--------------------

2
Collapse.php

@ -144,7 +144,7 @@ class Collapse extends Widget
$header = Html::tag('h4', $headerToggle, ['class' => 'panel-title']);
if (is_string($item['content']) || is_object($item['content'])) {
if (is_string($item['content']) || is_numeric($item['content']) || is_object($item['content'])) {
$content = Html::tag('div', $item['content'], ['class' => 'panel-body']) . "\n";
} elseif (is_array($item['content'])) {
$content = Html::ul($item['content'], [

Loading…
Cancel
Save