Skip to content
Snippets Groups Projects
Commit 89d8eb19 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: navigation fails

parent ada3df42
No related branches found
No related tags found
No related merge requests found
...@@ -51,7 +51,7 @@ $object = new FactureFournisseur($db); ...@@ -51,7 +51,7 @@ $object = new FactureFournisseur($db);
if ($action == 'addcontact' && $user->rights->fournisseur->facture->creer) if ($action == 'addcontact' && $user->rights->fournisseur->facture->creer)
{ {
$result = $object->fetch($id); $result = $object->fetch($id, $ref);
if ($result > 0 && $id > 0) if ($result > 0 && $id > 0)
{ {
......
...@@ -39,6 +39,7 @@ $langs->load("companies"); ...@@ -39,6 +39,7 @@ $langs->load("companies");
$id = GETPOST('facid','int')?GETPOST('facid','int'):GETPOST('id','int'); $id = GETPOST('facid','int')?GETPOST('facid','int'):GETPOST('id','int');
$action=GETPOST('action','alpha'); $action=GETPOST('action','alpha');
$confirm=GETPOST('confirm','alpha'); $confirm=GETPOST('confirm','alpha');
$ref = GETPOST('ref','alpha');
// Security check // Security check
if ($user->societe_id) $socid=$user->societe_id; if ($user->societe_id) $socid=$user->societe_id;
...@@ -58,7 +59,7 @@ if (! $sortorder) $sortorder="ASC"; ...@@ -58,7 +59,7 @@ if (! $sortorder) $sortorder="ASC";
if (! $sortfield) $sortfield="name"; if (! $sortfield) $sortfield="name";
$object = new FactureFournisseur($db); $object = new FactureFournisseur($db);
if ($object->fetch($id)) if ($object->fetch($id, $ref))
{ {
$object->fetch_thirdparty(); $object->fetch_thirdparty();
$ref=dol_sanitizeFileName($object->ref); $ref=dol_sanitizeFileName($object->ref);
......
...@@ -77,7 +77,7 @@ $form = new Form($db); ...@@ -77,7 +77,7 @@ $form = new Form($db);
llxHeader(); llxHeader();
if ($id) if ($object->id > 0)
{ {
$object->fetch_thirdparty(); $object->fetch_thirdparty();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment