2
0
forked from Wavyzz/dolibarr

warnings is better than error

This commit is contained in:
Eric Seigne
2023-02-04 17:21:13 +01:00
parent e04cd242b0
commit 1aaec5325f

View File

@@ -58,7 +58,7 @@ if ($action == 'setnote_public' && !empty($permissionnote) && !GETPOST('cancel',
//but the note is saved, so just add a notification will be enought //but the note is saved, so just add a notification will be enought
$resultGenDoc = $object->generateDocument($model, $outputlangs, $hidedetails, $hidedesc, $hideref); $resultGenDoc = $object->generateDocument($model, $outputlangs, $hidedetails, $hidedesc, $hideref);
if ($resultGenDoc < 0) { if ($resultGenDoc < 0) {
setEventMessages($object->error, $object->errors, 'errors'); setEventMessages($object->error, $object->errors, 'warnings');
} }
if ($result < 0) dol_print_error($db, $result); if ($result < 0) dol_print_error($db, $result);