Merge pull request #19637 from atm-john/12.0_fix_get_prev_progress

FIX : test of method exist on wrong object
This commit is contained in:
Laurent Destailleur 2021-12-16 16:49:59 +01:00 committed by GitHub
commit 36ba158a8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1937,7 +1937,7 @@ function pdf_getlineprogress($object, $i, $outputlangs, $hidedetails = 0, $hookm
if ($conf->global->SITUATION_DISPLAY_DIFF_ON_PDF)
{
$prev_progress = 0;
if (method_exists($object, 'get_prev_progress'))
if (method_exists($object->lines[$i], 'get_prev_progress'))
{
$prev_progress = $object->lines[$i]->get_prev_progress($object->id);
}