Commit 82e70be1 by Alexander Makarov

Fixed condition for #4595

parent be8b03bc
......@@ -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'])) {
......
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