From 8b244b0d61735628fb571492c9930c28fadc47b4 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 27 Feb 2013 19:21:40 +0100 Subject: [PATCH] Fix: select lost if error --- htdocs/comm/action/fiche.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/comm/action/fiche.php b/htdocs/comm/action/fiche.php index 79500a94fd0..8940b1adfed 100644 --- a/htdocs/comm/action/fiche.php +++ b/htdocs/comm/action/fiche.php @@ -467,7 +467,7 @@ if ($action == 'create') if (! empty($conf->global->AGENDA_USE_EVENT_TYPE)) { print ''.$langs->trans("Type").''; - if (GETPOST("actioncode")) + if (GETPOST("actioncode") && ! GETPOST('actioncode')) // Force selection only if not a post that fails { print ''."\n"; $cactioncomm->fetch(GETPOST("actioncode"));