From e12f8a84468667ad2ab2f45c75d8bf6260b80ceb Mon Sep 17 00:00:00 2001 From: Pierre Date: Mon, 9 Mar 2020 01:50:27 +0100 Subject: [PATCH] =?UTF-8?q?Correction=20de=20la=20redirection=20apr=C3=A8s?= =?UTF-8?q?=20enregistrement=20d'un=20groupe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- formulaires/editer_groupe.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/formulaires/editer_groupe.php b/formulaires/editer_groupe.php index 397f7c1..421f158 100644 --- a/formulaires/editer_groupe.php +++ b/formulaires/editer_groupe.php @@ -278,7 +278,13 @@ function formulaires_editer_groupe_traiter_dist($id_article=0, $redirect=''){ $retour = array(); $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($id_article, 'article');