From 7f540ac6f0c31a0105bb0cb980bb245197c73c1f Mon Sep 17 00:00:00 2001 From: "Abdessalam@MEGALOGI" Date: Tue, 18 Aug 2020 23:27:36 +0100 Subject: [PATCH] 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. --- htdocs/expedition/list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/expedition/list.php b/htdocs/expedition/list.php index 74efaaeb27a..b28bc7d062c 100644 --- a/htdocs/expedition/list.php +++ b/htdocs/expedition/list.php @@ -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;