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
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

quicksketch - July 31, 2008 - 03:43
Status:active» reviewed & tested by the community

Thanks, you're right. I'll make this change as soon as I clean up some other patches in progress.

#2

quicksketch - August 8, 2008 - 03:33

#3

Anonymous (not verified) - August 22, 2008 - 03:34
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.