diff --git a/htdocs/compta/paiement/cheque/fiche.php b/htdocs/compta/paiement/cheque/fiche.php
index 40fd36507f5..a38b58160af 100644
--- a/htdocs/compta/paiement/cheque/fiche.php
+++ b/htdocs/compta/paiement/cheque/fiche.php
@@ -88,7 +88,7 @@ if ($_GET['action'] == 'create' && $_GET["accountid"] > 0 && $user->rights->banq
$result = $remisecheque->create($user, $_GET["accountid"]);
if ($result > 0)
{
- Header("Location: fiche.php?id=".$remisecheque->id);
+ Header("Location: ".$_SERVER["PHP_SELF"]."?id=".$remisecheque->id);
exit;
}
else
@@ -104,7 +104,7 @@ if ($_GET['action'] == 'remove' && $_GET["id"] > 0 && $_GET["lineid"] > 0 && $us
$result = $remisecheque->removeCheck($_GET["lineid"]);
if ($result === 0)
{
- Header("Location: fiche.php?id=".$remisecheque->id);
+ Header("Location: ".$_SERVER["PHP_SELF"]."?id=".$remisecheque->id);
exit;
}
else
@@ -136,7 +136,7 @@ if ($_REQUEST['action'] == 'confirm_valide' && $_REQUEST['confirm'] == 'yes' &&
$result = $remisecheque->validate($user);
if ($result >= 0)
{
- Header("Location: fiche.php?id=".$remisecheque->id);
+ Header("Location: ".$_SERVER["PHP_SELF"]."?id=".$remisecheque->id);
exit;
}
else
@@ -188,7 +188,7 @@ $formfile = new FormFile($db);
if ($_GET['action'] == 'new')
{
$h=0;
- $head[$h][0] = DOL_URL_ROOT.'/compta/paiement/cheque/fiche.php?action=new';
+ $head[$h][0] = $_SERVER["PHP_SELF"].'?action=new';
$head[$h][1] = $langs->trans("MenuChequeDeposits");
$hselected = $h;
$h++;
@@ -206,7 +206,7 @@ else
}
$h=0;
- $head[$h][0] = DOL_URL_ROOT.'/compta/paiement/cheque/fiche.php?id='.$remisecheque->id;
+ $head[$h][0] = $_SERVER["PHP_SELF"].'?id='.$remisecheque->id;
$head[$h][1] = $langs->trans("CheckReceipt");
$hselected = $h;
$h++;
@@ -221,7 +221,7 @@ else
*/
if ($_GET['action'] == 'delete')
{
- $ret=$html->form_confirm('fiche.php?id='.$remisecheque->id, $langs->trans("DeleteCheckReceipt"), $langs->trans("ConfirmDeleteCheckReceipt"), 'confirm_delete','','',1);
+ $ret=$html->form_confirm($_SERVER["PHP_SELF"].'?id='.$remisecheque->id, $langs->trans("DeleteCheckReceipt"), $langs->trans("ConfirmDeleteCheckReceipt"), 'confirm_delete','','',1);
if ($ret == 'html') print '
';
}
@@ -231,7 +231,7 @@ else
if ($_GET['action'] == 'valide')
{
$facid = $_GET['facid'];
- $ret=$html->form_confirm('fiche.php?id='.$remisecheque->id, $langs->trans("ValidateCheckReceipt"), $langs->trans("ConfirmValidateCheckReceipt"), 'confirm_valide','','',1);
+ $ret=$html->form_confirm($_SERVER["PHP_SELF"].'?id='.$remisecheque->id, $langs->trans("ValidateCheckReceipt"), $langs->trans("ConfirmValidateCheckReceipt"), 'confirm_valide','','',1);
if ($ret == 'html') print '
';
}
}
@@ -318,7 +318,7 @@ if ($_GET['action'] == 'new')
print '