Fix error management

This commit is contained in:
Laurent Destailleur 2024-09-26 12:44:38 +02:00
parent c0a63855f3
commit 7c2e2bfbea
2 changed files with 5 additions and 2 deletions

View file

@ -930,7 +930,10 @@ if (empty($reshook)) {
// Go back to draft
if ($action == 'modif' && $usercancreate) {
$object->setDraft($user);
$result = $object->setDraft($user);
if ($result < 0) {
setEventMessages($object->error, $object->errors, 'errors');
}
if (!getDolGlobalString('MAIN_DISABLE_PDF_AUTOUPDATE')) {
// Define output language

View file

@ -844,7 +844,7 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it
}
}
return $content;
return '<div class="moduledesclong">'.$content.'</div>';
}
/**