Hi,
I am getting an error while working with file component. If i create a field with file component and if i submit the form without uploading any document i am getting this error.
"PDOException: SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: "" LINE 4: WHERE (base.fid IN ('')) ^: SELECT base.fid AS fid, base.uid AS uid, base.filename AS filename, base.uri AS uri, base.filemime AS filemime, base.filesize AS filesize, base.status AS status, base.timestamp AS timestamp FROM {file_managed} base WHERE (base.fid IN (:db_condition_placeholder_0)) ; Array ( [:db_condition_placeholder_0] => ) in DrupalDefaultEntityController->load() (line 196 of C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\webform4\includes\entity.inc)."
But if i upload the document i am not getting any error. help me with this.
Thanks in advance.
Comments
Comment #1
quicksketchThanks for the report! Indeed sounds like a bug. I'll see if I can reproduce it.
Comment #2
danchadwick commentedComment #3
danchadwick commentedI just tried to reproduce this but cannot. Can you please provide additional reproduction instructions from a clean installation of webform and a new webform?
Please reopen if it can be reproduced. It may well have been fixed since 7.x-4.0-alpha4.