Merge pull request #2695 from Ankapi/develop

Fixed hook "pdfgeneration" in the pdf blochet of cheque deposit
This commit is contained in:
Laurent Destailleur 2015-04-22 19:24:40 +02:00
commit b57d3ddf03

View File

@ -188,7 +188,7 @@ class BordereauChequeBlochet extends ModeleChequeReceipts
$hookmanager->initHooks(array('pdfgeneration'));
$parameters=array('file'=>$file,'object'=>$object,'outputlangs'=>$outputlangs);
global $action;
$reshook=$hookmanager->executeHooks('adterPDFCreation',$parameters,$this,$action); // Note that $action and $object may have been modified by some hooks
$reshook=$hookmanager->executeHooks('afterPDFCreation',$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));