From fb8f86d79dd579fe464e90b2d1648fe7f7381b46 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 27 Apr 2010 18:41:58 +0000 Subject: [PATCH] Removed hard coded url --- htdocs/soc.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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 '
'; + print ''; print ''; print ''; @@ -694,7 +694,7 @@ $_GET["action"] == 'create' || $_POST["action"] == 'create') print ''.$langs->trans("LocalTax2IsUsedES").''; print $html->selectyesno('localtax2assuj_value',0,1); print ''; - + } elseif($mysoc->localtax1_assuj=="1") { @@ -831,7 +831,7 @@ elseif ($_GET["action"] == 'edit' || $_POST["action"] == 'edit') dol_htmloutput_errors($soc->error,$soc->errors); - print ''; + print ''; print ''; print ''; print ''; @@ -1048,14 +1048,14 @@ elseif ($_GET["action"] == 'edit' || $_POST["action"] == 'edit') print ''.$langs->trans("LocalTax2IsUsedES").''; print $form->selectyesno('localtax2assuj_value',$soc->localtax2_assuj,1); print ''; - + } elseif($mysoc->localtax1_assuj=="1") { print ''.$langs->trans("LocalTax1IsUsedES").''; print $form->selectyesno('localtax1assuj_value',$soc->localtax1_assuj,1); print ''; - + } elseif($mysoc->localtax2_assuj=="1") { @@ -1306,7 +1306,7 @@ else print ''.$langs->trans("LocalTax2IsUsedES").''; print yn($soc->localtax2_assuj); print ''; - + } elseif($mysoc->localtax1_assuj=="1") {