Return back to the results page when a new column is created

This commit is contained in:
Marcos García de La Fuente 2014-01-05 21:20:08 +01:00
parent b12b7d965a
commit 45aa6767e0

View File

@ -175,6 +175,9 @@ if (GETPOST("ajoutercolonne") && GETPOST('nouvellecolonne') && ($object->format
dol_syslog("sql=".$sql);
$resql = $db->query($sql);
if (! $resql) dol_print_error($db);
else {
header('Location: results.php?id='.$object->id_sondage);
}
}
// Add column (with format date)
@ -267,6 +270,9 @@ if (isset($_POST["ajoutercolonne"]) && ($object->format == "D"))
dol_syslog("sql=".$sql);
$resql = $db->query($sql);
if (! $resql) dol_print_error($db);
else {
header('Location: results.php?id='.$object->id_sondage);
}
}
}