diff --git a/htdocs/fourn/commande/card.php b/htdocs/fourn/commande/card.php index a44a1be11be..86e34ce39a1 100644 --- a/htdocs/fourn/commande/card.php +++ b/htdocs/fourn/commande/card.php @@ -820,8 +820,7 @@ if (empty($reshook)) { } else { $db->rollback(); - dol_print_error($db, $object->error); - exit; + setEventMessages($object->error, $object->errors, 'errors'); } } diff --git a/htdocs/ticket/messaging.php b/htdocs/ticket/messaging.php index 68615424abf..9d605a530b9 100644 --- a/htdocs/ticket/messaging.php +++ b/htdocs/ticket/messaging.php @@ -204,6 +204,7 @@ if (!empty($conf->projet->enabled)) { } } else { if (!empty($object->fk_project)) { + require_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php'; $proj = new Project($db); $proj->fetch($object->fk_project); $morehtmlref .= $proj->getNomUrl(1);