diff --git a/htdocs/soc.php b/htdocs/soc.php index f2d4fc16ecd..76d2dc26b26 100644 --- a/htdocs/soc.php +++ b/htdocs/soc.php @@ -220,7 +220,7 @@ if ((! $_POST["getcustomercode"] && ! $_POST["getsuppliercode"]) } else { - Header("Location: soc.php?socid=".$soc->id); + Header("Location: ".$_SERVER["PHP_SELF"]."?socid=".$soc->id); return; } } @@ -240,7 +240,7 @@ if ((! $_POST["getcustomercode"] && ! $_POST["getsuppliercode"]) { if ($_POST["cancel"]) { - Header("Location: soc.php?socid=".$socid); + Header("Location: ".$_SERVER["PHP_SELF"]."?socid=".$socid); exit; } @@ -255,7 +255,7 @@ if ((! $_POST["getcustomercode"] && ! $_POST["getsuppliercode"]) $result = $soc->update($socid,$user,1,$oldsoc->codeclient_modifiable(),$oldsoc->codefournisseur_modifiable()); if ($result >= 0) { - Header("Location: soc.php?socid=".$socid); + Header("Location: ".$_SERVER["PHP_SELF"]."?socid=".$socid); exit; } else @@ -457,7 +457,7 @@ $_GET["action"] == 'create' || $_POST["action"] == 'create') dol_htmloutput_errors($soc->error,$soc->errors); - print '