Browse Source

Fixed condition for #4595

tags/2.0.0-rc
Alexander Makarov 10 years ago
parent
commit
b95d716f49
  1. 2
      Modal.php

2
Modal.php

@ -168,7 +168,7 @@ class Modal extends Widget
*/
protected function renderToggleButton()
{
if ($this->toggleButton !== null) {
if ($this->toggleButton !== false) {
$tag = ArrayHelper::remove($this->toggleButton, 'tag', 'button');
$label = ArrayHelper::remove($this->toggleButton, 'label', 'Show');
if ($tag === 'button' && !isset($this->toggleButton['type'])) {

Loading…
Cancel
Save