Correction de la redirection après enregistrement d'un groupe
This commit is contained in:
parent
bad6e49084
commit
e12f8a8446
1 changed files with 7 additions and 1 deletions
|
@ -278,7 +278,13 @@ function formulaires_editer_groupe_traiter_dist($id_article=0, $redirect=''){
|
||||||
$retour = array();
|
$retour = array();
|
||||||
$retour['message_ok'] = "Le groupe est bien enregistré.";
|
$retour['message_ok'] = "Le groupe est bien enregistré.";
|
||||||
|
|
||||||
$retour['redirect'] = 'spip.php?page=groupes&id_article='.$id_article;
|
// Si c'est un groupe ponctuel, on redirige vers le pays, sinon vers la ville
|
||||||
|
if (_request('ponctuel')=="on"){
|
||||||
|
$retour['redirect'] = "spip.php?page=groupes&id_rubrique=$id_rubrique";
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
$retour['redirect'] = "spip.php?page=groupes&id_article=$id_article";
|
||||||
|
}
|
||||||
|
|
||||||
$bigform = charger_fonction('bigform_traiter','inc');
|
$bigform = charger_fonction('bigform_traiter','inc');
|
||||||
$bigform($id_article, 'article');
|
$bigform($id_article, 'article');
|
||||||
|
|
Loading…
Add table
Reference in a new issue