Yes / No Element throwing SQL Error

Hey there,

I have the "yes/no" element enabled on a form and when trying to add a record, it throws the attached error. Disabling the "yes/no" element allows us to successfully add a record.

Thoughts?

Thanks much in advance for your help!
 

Attachments

  • Screen Shot 2014-11-20 at 8.06.44 AM.png
    Screen Shot 2014-11-20 at 8.06.44 AM.png
    45.3 KB · Views: 190
Is 'current' the yes/no, script-files the list/DB table?
Do you have a validation on this element?
Or some form plugins?
 
Hey there troester,

Yes, 'script_files' is the list/DB, and 'current' is the yes/no element. No validation on the element, however it does use the 'single' option, which is what this error is in relation to. Don't have access to the file right now, but the line of code that updates the db rows to "0" is at the bottom of the yes/no PHP element plugin file.

The syntax looks correct, so not really sure what to say.

Thanks much in advance!
 
I didn't test (no time at the moment) but the problem may be that the rowid doesn't exist in a new record before it is saved.
 
Hi troester,

Yeah, I figured it had something to do with that. That makes a lot of sense.

I can't do anything with this until next week Monday, but any additional input you, rob, or others have in the meantime is most appreciated. Obviously, no problem about your time, thanks fir your follow up here.

Cheers
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top