Closed (fixed)
Project:
Webform
Version:
5.x-2.1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Jul 2008 at 02:42 UTC
Updated:
22 Aug 2008 at 03:34 UTC
webform is trying to redirect to "node//results" when deleting submission with no destination parameter set.
The problem is $form_values['nid'] is empty, changing it to $form_values['node']->nid fixed the problem.
function webform_submission_delete_form_submit($form_id, $form_values) {
webform_submission_delete($form_values['node'], $form_values['submission']);
drupal_set_message(t("Submission deleted."));
return 'node/'. $form_values['nid'] .'/results';
}
Comments
Comment #1
quicksketchThanks, you're right. I'll make this change as soon as I clean up some other patches in progress.
Comment #2
quicksketchFixed. Thanks.
D5: http://cvs.drupal.org/viewcvs/drupal/contributions/modules/webform/webfo...
D6: http://cvs.drupal.org/viewcvs/drupal/contributions/modules/webform/webfo...
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.