Fix: Navigation into supplier invoices

This commit is contained in:
Laurent Destailleur 2013-05-29 15:56:18 +02:00
parent 4fa99a86ed
commit d1d329a6a2

View File

@ -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);