Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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¶meters[uid]=123
This usage of the parameters
argument is borrowed from the Services module's entity index resources filtering system. Patch to come...
Comment | File | Size | Author |
---|---|---|---|
#3 | Selección_055.png | 10.07 KB | jomarocas |
#3 | Selección_056.png | 11.62 KB | jomarocas |
#3 | Selección_057.png | 36.82 KB | jomarocas |
#1 | submission_index_filters-2452085-1.patch | 1.85 KB | tyler.frankenstein |
Comments
Comment #1
tyler.frankenstein CreditAttribution: tyler.frankenstein commentedComment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedPatch applies cleanly to the latest dev, & does what it says. RTBC.
Comment #3
jomarocas CreditAttribution: jomarocas as a volunteer commented@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
Comment #5
tyler.frankenstein CreditAttribution: tyler.frankenstein commented