From dfe0ccee4547615a09b1caa54b0f02a52d673958 Mon Sep 17 00:00:00 2001 From: oscim Date: Mon, 10 May 2021 14:10:54 +0200 Subject: [PATCH 1/2] Update card.php Add hook for block boxstats in fourn card --- htdocs/fourn/card.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/htdocs/fourn/card.php b/htdocs/fourn/card.php index 66de187bfe7..92c3d47b7fd 100644 --- a/htdocs/fourn/card.php +++ b/htdocs/fourn/card.php @@ -481,6 +481,13 @@ if ($object->id > 0) { } } + + $parameters = array(); + $reshook = $hookmanager->executeHooks('addMoreBoxStatsSupplier', $parameters, $object, $action); + if (empty($reshook)) { + $boxstat .= $hookmanager->resPrint; + } + $boxstat .= ''; $boxstat .= ''; $boxstat .= ''; From b9bdd9ed8a49012802d85e425bf8962379346f84 Mon Sep 17 00:00:00 2001 From: stickler-ci Date: Mon, 10 May 2021 12:13:50 +0000 Subject: [PATCH 2/2] Fixing style errors. --- htdocs/fourn/card.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/fourn/card.php b/htdocs/fourn/card.php index 92c3d47b7fd..90934062910 100644 --- a/htdocs/fourn/card.php +++ b/htdocs/fourn/card.php @@ -481,13 +481,13 @@ if ($object->id > 0) { } } - + $parameters = array(); $reshook = $hookmanager->executeHooks('addMoreBoxStatsSupplier', $parameters, $object, $action); if (empty($reshook)) { $boxstat .= $hookmanager->resPrint; } - + $boxstat .= ''; $boxstat .= ''; $boxstat .= '';