mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Return back to the results page when a new column is created
This commit is contained in:
parent
b12b7d965a
commit
45aa6767e0
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user