Fix: Better error management
This commit is contained in:
parent
954af0f6c7
commit
110d0f1d3b
@ -1253,10 +1253,12 @@ else
|
||||
$productstatic = new Product($db);
|
||||
|
||||
$object->fetch($id);
|
||||
$object->fetch_thirdparty();
|
||||
$result=$object->fetch_thirdparty();
|
||||
if ($result < 0) dol_print_error($db);
|
||||
|
||||
$societe = new Fournisseur($db);
|
||||
$societe->fetch($object->socid);
|
||||
$result=$societe->fetch($object->socid);
|
||||
if ($result < 0) dol_print_error($db);
|
||||
|
||||
/*
|
||||
* View card
|
||||
|
||||
Loading…
Reference in New Issue
Block a user