diff --git a/htdocs/soc.php b/htdocs/soc.php index 1cd0c67a9c4..b43722ff6e8 100644 --- a/htdocs/soc.php +++ b/htdocs/soc.php @@ -143,6 +143,12 @@ if ((! $_POST["getcustomercode"] && ! $_POST["getsuppliercode"]) if ($_POST["action"] == 'update') { + if ($_POST["cancel"]) + { + Header("Location: soc.php?socid=".$socid); + exit; + } + $result = $soc->update($socid,$user); if ($result >= 0) { @@ -609,7 +615,11 @@ elseif ($_GET["action"] == 'edit' || $_POST["action"] == 'edit') $form->select_array("effectif_id",$soc->effectif_array(), $soc->effectif_id); print ''; - print ''; + print ''; + print ''; + print '   '; + print ''; + print ''; print ''; print '';