replace old parameter facid by id (#27416)
* replace old parameter facid by id * Update facture.class.php
This commit is contained in:
parent
d3416b864c
commit
1082a7baf7
2 changed files with 2 additions and 2 deletions
|
|
@ -1999,7 +1999,7 @@ class Facture extends CommonInvoice
|
|||
if ($option == 'withdraw') {
|
||||
$url = DOL_URL_ROOT.'/compta/facture/prelevement.php?facid='.$this->id;
|
||||
} else {
|
||||
$url = DOL_URL_ROOT.'/compta/facture/card.php?facid='.$this->id;
|
||||
$url = DOL_URL_ROOT.'/compta/facture/card.php?id='.$this->id;
|
||||
}
|
||||
|
||||
if (!$user->hasRight("facture", "read")) {
|
||||
|
|
|
|||
|
|
@ -961,7 +961,7 @@ if ($num == 1 && getDolGlobalString('MAIN_SEARCH_DIRECT_OPEN_IF_ONLY_ONE') && $s
|
|||
$obj = $db->fetch_object($resql);
|
||||
$id = $obj->id;
|
||||
|
||||
header("Location: ".DOL_URL_ROOT.'/compta/facture/card.php?facid='.$id);
|
||||
header("Location: ".DOL_URL_ROOT.'/compta/facture/card.php?id='.$id);
|
||||
exit;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue