pungpoo / giix

Automatically exported from code.google.com/p/giix
0 stars 0 forks source link

Undefined index: ajax, while using ajaxvalidation, and the ajax form extension #30

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a GiixActiveForm
2. Enable ajax validation
3. Add the ajax form plugin or extension

What is the expected output?
The record is inserted or updated

What do you see instead?
A 500 error, saying Undefinde index ajax, in line 160 of GiixActiveForm

What version of giix are you using?
1.9.1

What is your stack (operating system, web server, DBMS, PHP version)?
What version of the Yii Framework are you using?
Any relevant additional software (opcode cache etc)?

Please paste the stack trace and the error message.

Please attach your relevant source and configuration files and sql scripts.

Please provide any additional information below.
To solve this error, I just add one more condition in that if, which is "&& 
isset($_REQUEST['ajax'])" so it does not throws the error when note receiving 
the ajax parameter.

Original issue reported on code.google.com by Ricardo....@gmail.com on 3 Nov 2011 at 5:20

GoogleCodeExporter commented 8 years ago
Thanks. I'll check.

Original comment by rodrigo.coelho@gmail.com on 4 Nov 2011 at 6:15

GoogleCodeExporter commented 8 years ago
confirmed, isset($_POST['ajax']) is missing there.

Original comment by radek.an...@gmail.com on 4 Jul 2012 at 3:18