From 1afdce2c16b84982c23d8402b97929563f202ecc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Garci=CC=81a=20de=20La=20Fuente?= Date: Sun, 5 Jan 2014 20:34:43 +0100 Subject: [PATCH] Cancel button when adding a new poll column was not working --- htdocs/opensurvey/results.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/htdocs/opensurvey/results.php b/htdocs/opensurvey/results.php index cf8488474a5..cf403949994 100644 --- a/htdocs/opensurvey/results.php +++ b/htdocs/opensurvey/results.php @@ -49,6 +49,12 @@ $nblignes=count($object->fetch_lines()); * Actions */ +//Return to the results +if (GETPOST('retoursondage')) { + header('Location: results.php?id='.$_GET['id']); + die; +} + $nbcolonnes = substr_count($object->sujet, ',') + 1; // Add vote @@ -467,7 +473,6 @@ print ''.$langs print ''; - // Add form to add a field if (GETPOST('ajoutsujet')) {