Closed (fixed)
Project:
Webform
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 Mar 2005 at 20:30 UTC
Updated:
25 Mar 2005 at 16:05 UTC
Webform provides a "clear" link next to each form instance, but this doesn't seem to have any functionality. Attached patch (diff -Nur) provides functionality for the clear link (delete all submission for the form instance from the webform_submitted_data table); also prompts to confirm deletion before going ahead. Also fixed division by zero error in webform.inc.
| Comment | File | Size | Author |
|---|---|---|---|
| webform_1.patch | 4.09 KB | townxelliot |
Comments
Comment #1
jnt commentedLooks good to me, with the normal (albiet hypocritical) comments about doxygen style commenting and conformance to the drupal style guide.
Given that clearing all entries is a fairly significant adventure I would recommend a simple watchdog entry be called in function _webform_clear() to that effect.
I notice you have restricted the functionality to superuser 1, this is probably a good idea. I am working on an individual delete function under the submissions listing.
Upgraded to patch for ullgren to look at it.
Comment #2
ullgren commentedAdded patch to CVS
Comment #3
ullgren commented