forked from Wavyzz/dolibarr
Uniformize code:
New: Call to hook after generation is also done into odt. Fix: Missing hook before save.
This commit is contained in:
@@ -482,6 +482,8 @@ class doc_generic_order_odt extends ModelePDFCommandes
|
||||
}
|
||||
}
|
||||
|
||||
$reshook=$hookmanager->executeHooks('afterODTCreation',$parameters,$this,$action); // Note that $action and $object may have been modified by some hooks
|
||||
|
||||
if (! empty($conf->global->MAIN_UMASK))
|
||||
@chmod($file, octdec($conf->global->MAIN_UMASK));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user