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).

CommentFileSizeAuthor
#1 859860-fields-array.patch838 bytesStevel

Comments

Stevel’s picture

Version: 7.x-3.0-beta6 » 7.x-3.x-dev
Status: Active » Needs review
StatusFileSize
new838 bytes

As 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...

ksenzee’s picture

Status: Needs review » Reviewed & tested by the community

Looks good.

quicksketch’s picture

Status: Reviewed & tested by the community » Fixed

Committed, thanks guys.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.