rcoelho / giix

giix is Gii Extended, a code generator for Yii PHP framework – with extras!
http://www.yiiframework.com/extension/giix
Other
76 stars 29 forks source link

Undefined index 'ajax' in performAjaxValidation #10

Open andrevabo opened 11 years ago

andrevabo commented 11 years ago

giix-components/GxController.php line 160

... if (Yii::app()->getRequest()->getIsAjaxRequest() && (($form === null) || ($_POST['ajax'] == $form))) ...

change:

($_POST['ajax'] == $form)

to:

(isset($_POST['ajax']) && $_POST['ajax'] == $form)

rcoelho commented 11 years ago

Thanks, @andrevabo.