From 7ff87fc550682f6e475d9c1d18579f08423f2df7 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 9 Oct 2009 13:24:39 +0000 Subject: [PATCH] Fix: bad action if error --- htdocs/soc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/soc.php b/htdocs/soc.php index 23caf1a9689..bf27e3623a9 100644 --- a/htdocs/soc.php +++ b/htdocs/soc.php @@ -131,13 +131,13 @@ if ((! $_POST["getcustomercode"] && ! $_POST["getsuppliercode"]) { $error = 1; $soc->error = $langs->trans("ErrorBadEMail",$soc->email); - $_GET["action"]= $_POST["action"]=='add'?'add':'edit'; + $_GET["action"] = $_POST["action"]=='add'?'create':'edit'; } if ($soc->fournisseur && ! $conf->fournisseur->enabled) { $error = 1; $soc->error = $langs->trans("ErrorSupplierModuleNotEnabled"); - $_GET["action"]= $_POST["action"]=='add'?'add':'edit'; + $_GET["action"] = $_POST["action"]=='add'?'create':'edit'; } }