Right now the filters passed to webform_get_submissions() in webform_service_submission_index() are hard coded:

$submissions = webform_get_submissions(array('nid' => $webform->nid));

It'd be great if we could more flexibility filter on this index's resource. For example, if we only wanted the current user's submissions, we could pass in a filter using the proposed structue:

?q=endpoint/webform/[uuid]/submissions.json&parameters[uid]=123

This usage of the parameters argument is borrowed from the Services module's entity index resources filtering system. Patch to come...

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tyler.frankenstein’s picture

Status: Active » Needs review
FileSize
1.85 KB
Anonymous’s picture

Status: Needs review » Reviewed & tested by the community

Patch applies cleanly to the latest dev, & does what it says. RTBC.

jomarocas’s picture

FileSize
36.82 KB
11.62 KB
10.07 KB

@tyler.frankenstein i apply the patch, i use the latest version of webform, i use the latest core of drupal, and i cannot get submit a formulary, the form send and register in submission but no send any mail, i only have two fields, email and name, and fails, i see the php errors and give me various errors, attach file of errors

image
image
image

tyler.frankenstein’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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