Closed (fixed)
Project:
Webform
Version:
7.x-4.x-dev
Component:
Documentation
Priority:
Minor
Category:
Bug report
Assigned:
Reporter:
Created:
30 Jun 2013 at 04:31 UTC
Updated:
16 Aug 2013 at 04:41 UTC
Jump to comment: Most recent file
The phpdoc on webform_submission_delete() claims that it wants $nid and $sid integers, but the code actually expects $node and $submission objects.
145 /**
146 * Delete a single submission.
147 *
148 * @param $nid
149 * ID of node for which this webform was submitted.
150 * @param $sid
151 * ID of submission to be deleted (from webform_submitted_data).
152 */
153 function webform_submission_delete($node, $submission) {
154 // Iterate through all components and let each do cleanup if necessary.
155 foreach ($node->webform['components'] as $cid => $component) {
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | webform-2031541-2.patch | 765 bytes | claar |
Comments
Comment #1
quicksketchThanks for the report! I think this problem affects the 3.x branches also.
Comment #2
claar commentedPatch against master.
Comment #3
quicksketchThanks, committed!