Fix: Better error management
This commit is contained in:
parent
6a519cd88c
commit
cf52cbfab5
@ -528,7 +528,8 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action))
|
|||||||
if (empty($object->error) && $socid)
|
if (empty($object->error) && $socid)
|
||||||
{
|
{
|
||||||
$object = new Societe($db);
|
$object = new Societe($db);
|
||||||
$object->fetch($socid);
|
$result=$object->fetch($socid);
|
||||||
|
if ($result <= 0) dol_print_error('',$object->error);
|
||||||
}
|
}
|
||||||
$objcanvas->assign_values($action, $socid); // Set value for templates
|
$objcanvas->assign_values($action, $socid); // Set value for templates
|
||||||
$objcanvas->display_canvas($action); // Show template
|
$objcanvas->display_canvas($action); // Show template
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user