After creating a webform document with fields added content was added to these fields and webform was submitted error returned on submission as anonymous user.
Recoverable fatal error: Argument 2 passed to SelectQuery::fields() must be an array, string given, called in /home/data/drupal7/sites/default/modules/webform/includes/webform.components.inc on line 944 and defined in SelectQuery->fields() (line 1152 of /home/data/drupal7/includes/database/select.inc).
same data entered as admin user with following result
Recoverable fatal error: Argument 2 passed to SelectQuery::fields() must be an array, string given, called in /home/data/drupal7/sites/default/modules/webform/includes/webform.components.inc on line 944 and defined in SelectQuery->fields() (line 1152 of /home/data/drupal7/includes/database/select.inc).
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 859860-fields-array.patch | 838 bytes | Stevel |
Comments
Comment #1
Stevel commentedAs the error message says, the second parameter needs to be an array. This patch makes sure it is. (not sure if it's the same instance of this bug as the line number differs a bit...
Comment #2
ksenzeeLooks good.
Comment #3
quicksketchCommitted, thanks guys.