Skip to content

Commit

Permalink
Merge pull request #7518 from atm-ph/fix_5.0_hookmanager_situation_in…
Browse files Browse the repository at this point in the history
…voice

Fix the pdf_getlineprogress hook isn't use because hookmanager is null
  • Loading branch information
eldy committed Oct 1, 2017
2 parents 7c690ae + 7ba2dd8 commit be84b52
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions htdocs/core/lib/pdf.lib.php
Expand Up @@ -1753,6 +1753,8 @@ function pdf_getlineremisepercent($object,$i,$outputlangs,$hidedetails=0)
*/
function pdf_getlineprogress($object, $i, $outputlangs, $hidedetails = 0, $hookmanager = null)
{
if (empty($hookmanager)) global $hookmanager;

$reshook=0;
$result='';
//if (is_object($hookmanager) && ( (isset($object->lines[$i]->product_type) && $object->lines[$i]->product_type == 9 && ! empty($object->lines[$i]->special_code)) || ! empty($object->lines[$i]->fk_parent_line) ) )
Expand Down

0 comments on commit be84b52

Please sign in to comment.