From d1d329a6a25aae491bfa556fac9f0f26c8b1c789 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 29 May 2013 15:56:18 +0200 Subject: [PATCH] Fix: Navigation into supplier invoices --- htdocs/fourn/facture/fiche.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/fourn/facture/fiche.php b/htdocs/fourn/facture/fiche.php index dcf47f43303..aa9658a9d84 100644 --- a/htdocs/fourn/facture/fiche.php +++ b/htdocs/fourn/facture/fiche.php @@ -1283,7 +1283,7 @@ if ($action == 'create') } else { - if ($id > 0) + if ($id > 0 || ! empty($ref)) { /* *************************************************************************** */ /* */ @@ -1295,7 +1295,7 @@ else $productstatic = new Product($db); - $object->fetch($id); + $object->fetch($id,$ref); $result=$object->fetch_thirdparty(); if ($result < 0) dol_print_error($db);