Skip to content

Commit

Permalink
Merge pull request #5936 from atm-maxime/fix_pdfmuscadet_hook_call
Browse files Browse the repository at this point in the history
Fix bad parameter in hook call
  • Loading branch information
Juanjo Menent committed Oct 28, 2016
2 parents 5e7c720 + be493fc commit 57a8e05
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -211,7 +211,7 @@ function write_file($object,$outputlangs='',$srctemplatepath='',$hidedetails=0,$
$hookmanager->initHooks(array('pdfgeneration'));
$parameters=array('file'=>$file,'object'=>$object,'outputlangs'=>$outputlangs);
global $action;
$reshook=$hookmanager->executeHooks('beforePDFCreation',$parameters,$this,$action); // Note that $action and $object may have been modified by some hooks
$reshook=$hookmanager->executeHooks('beforePDFCreation',$parameters,$object,$action); // Note that $action and $object may have been modified by some hooks

$nblignes = count($object->lines);

Expand Down

0 comments on commit 57a8e05

Please sign in to comment.