2
0
forked from Wavyzz/dolibarr

add new rule

This commit is contained in:
Frédéric FRANCE
2020-05-21 15:05:19 +02:00
parent b58060f899
commit b41ac00b98
961 changed files with 9487 additions and 19110 deletions

View File

@@ -37,8 +37,7 @@ if ($action == 'builddoc' && $permissiontoadd)
if (is_numeric(GETPOST('model', 'alpha')))
{
$error = $langs->trans("ErrorFieldRequired", $langs->transnoentities("Model"));
}
else {
} else {
// Reload to get all modified line records and be ready for hooks
$ret = $object->fetch($id);
$ret = $object->fetch_thirdparty();
@@ -88,8 +87,7 @@ if ($action == 'builddoc' && $permissiontoadd)
{
setEventMessages($object->error, $object->errors, 'errors');
$action = '';
}
else {
} else {
if (empty($donotredirect)) // This is set when include is done by bulk action "Bill Orders"
{
setEventMessages($langs->trans("FileGenerated"), null);
@@ -132,8 +130,7 @@ if ($action == 'remove_file' && $permissiontoadd)
header('Location: '.$urltoredirect);
exit;
}
else {
} else {
setEventMessages('BugFoundVarUploaddirnotDefined', null, 'errors');
}
}