Merge pull request #7518 from atm-ph/fix_5.0_hookmanager_situation_invoice

Fix the pdf_getlineprogress hook isn't use because hookmanager is null
This commit is contained in:
Laurent Destailleur 2017-10-02 00:14:34 +02:00 committed by GitHub
commit be84b52d19

View File

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