Page Not Found when deleting submission without destination parameter set
ariflukito - July 30, 2008 - 02:42
| Project: | Webform |
| Version: | 5.x-2.1.2 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
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';
}
#1
Thanks, you're right. I'll make this change as soon as I clean up some other patches in progress.
#2
Fixed. Thanks.
D5: http://cvs.drupal.org/viewcvs/drupal/contributions/modules/webform/webfo...
D6: http://cvs.drupal.org/viewcvs/drupal/contributions/modules/webform/webfo...
#3
Automatically closed -- issue fixed for two weeks with no activity.