Open mitrii opened 11 years ago
Please explain this issue and I'll see what I can do.
For example:
<?php $this->widget('bootstrap.widgets.TbModal', array(
'id' => 'myModal',
'header' => 'Modal Heading',
'remote' => 'http://example.com',
'footer' => array(
TbHtml::button('Save Changes', array('data-dismiss' => 'modal', 'color' => TbHtml::BUTTON_COLOR_PRIMARY)),
TbHtml::button('Close', array('data-dismiss' => 'modal')),
),
)); ?>
Any value in option "remote" ignored, because in line 160 of TbModal.php missed 3rd parameter:
if ($remote = TbArray::popValue('remote', $this->options)) {
Must be:
if ($remote = TbArray::popValue('remote', $this->options, $this->remote)) {
I will fix this when add the new version of the modal widget. #148
I think, missed 3rd parameter in function TbArray::popValue on line 160