forked from Wavyzz/dolibarr
add new rule
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user