2
0
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:
Laurent Destailleur
2014-08-21 15:02:18 +02:00
parent bc0c5fb55e
commit c799f0f10f
7 changed files with 36 additions and 2 deletions

View File

@@ -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));