Fix error management
This commit is contained in:
parent
c0a63855f3
commit
7c2e2bfbea
2 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -844,7 +844,7 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it
|
|||
}
|
||||
}
|
||||
|
||||
return $content;
|
||||
return '<div class="moduledesclong">'.$content.'</div>';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue