Commit 6666fdd3 authored by Pierre-Yves Gosset's avatar Pierre-Yves Gosset

Bugfixes quite dirty for issue 29

parent a27163e2
......@@ -73,7 +73,8 @@ function webform_results_submissions($node, $user_filter, $pager_count) {
$row[] = l(t('View'), "node/$node->nid/submission/$sid");
$operation_count = 1;
// No need to call this multiple times, just reference this in a variable.
$destination = drupal_get_destination();
//$destination = drupal_get_destination(); //commented for security :
$destination = array("destination" => drupal_get_path_alias('node/'.$node->nid)."/webform-results");
if (webform_submission_access($node, $submission, 'edit', $user)) {
$row[] = l(t('Edit'), "node/$node->nid/submission/$sid/edit", array('query' => $destination));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment