Commit 61ff1444 authored by Meysam's avatar Meysam Committed by Alexander Makarov

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

parent 772b610e
......@@ -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
--------------------
......
......@@ -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'], [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment