loveorigami / yii2-modal-ajax

A wrapper around Yii2 Bootstrap Modal for using an ActiveForm via AJAX inside.
MIT License
50 stars 30 forks source link

Bug: in `ModalAjax::registerMultyModal()` when `ajaxSubmit=false` #29

Open egorrishe opened 4 years ago

egorrishe commented 4 years ago

Bug in ModalAjax::registerMultyModal() line 190 :

ajaxSubmit: $this->ajaxSubmit

Fix (exactly the same as in ModalAjax::registerSingleModal() line 163:

ajaxSubmit: ".($this->ajaxSubmit ? "true" : "false")."

Workaround (while fix is not implemented):

echo ModalAjax::widget([
    'ajaxSubmit'    => new JsExpression('false'),
    ...
]);