Passing $totalarray as a parameter to printFieldListFooter Hook's

Sometimes, we need $totalarray to know nbfield or to display some vars in the footer of list.
This commit is contained in:
Abdessalam@MEGALOGI 2020-08-18 23:27:36 +01:00 committed by GitHub
parent 53522fb8dd
commit 7f540ac6f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -800,7 +800,7 @@ if ($resql)
}
$db->free($resql);
$parameters = array('arrayfields'=>$arrayfields, 'sql'=>$sql);
$parameters = array('arrayfields'=>$arrayfields, 'totalarray' => $totalarray, 'sql'=>$sql);
$reshook = $hookmanager->executeHooks('printFieldListFooter', $parameters); // Note that $action and $object may have been modified by hook
print $hookmanager->resPrint;