From dbebd7afb243ccdb38479d89818044db7fda94bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Tue, 6 Dec 2022 16:01:14 +0100 Subject: [PATCH 1/2] add parameter --- htdocs/fourn/commande/dispatch.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/fourn/commande/dispatch.php b/htdocs/fourn/commande/dispatch.php index c639e622337..e9cd23e9049 100644 --- a/htdocs/fourn/commande/dispatch.php +++ b/htdocs/fourn/commande/dispatch.php @@ -7,7 +7,7 @@ * Copyright (C) 2014 Cedric Gross * Copyright (C) 2016 Florian Henry * Copyright (C) 2017-2022 Ferran Marcet - * Copyright (C) 2018 Frédéric France + * Copyright (C) 2018-2022 Frédéric France * Copyright (C) 2019-2020 Christophe Battarel * * This program is free software; you can redistribute it and/or modify @@ -1016,7 +1016,8 @@ if ($id > 0 || !empty($ref)) { // Enable hooks to append additional columns $parameters = array( - 'is_information_row' => false // this is a dispatch form row + 'is_information_row' => false, // this is a dispatch form row + 'objp' => $objp, ); $reshook = $hookmanager->executeHooks( 'printFieldListValue', From c29fd09cbd714761fbb5f6993fdab46d93075faa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Tue, 6 Dec 2022 16:46:04 +0100 Subject: [PATCH 2/2] add parameters --- htdocs/fourn/commande/dispatch.php | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/htdocs/fourn/commande/dispatch.php b/htdocs/fourn/commande/dispatch.php index e9cd23e9049..9e3a9ba7808 100644 --- a/htdocs/fourn/commande/dispatch.php +++ b/htdocs/fourn/commande/dispatch.php @@ -873,10 +873,11 @@ if ($id > 0 || !empty($ref)) { // Enable hooks to append additional columns $parameters = array( - 'is_information_row' => true, // allows hook to distinguish between the - // rows with information and the rows with - // dispatch form input - 'objp' => $objp + // allows hook to distinguish between the rows with information and the rows with dispatch form input + 'is_information_row' => true, + 'i' => $i, + 'suffix' => $suffix, + 'objp' => $objp, ); $reshook = $hookmanager->executeHooks( 'printFieldListValue', @@ -935,10 +936,11 @@ if ($id > 0 || !empty($ref)) { // Enable hooks to append additional columns $parameters = array( - 'is_information_row' => true, // allows hook to distinguish between the - // rows with information and the rows with - // dispatch form input - 'objp' => $objp + // allows hook to distinguish between the rows with information and the rows with dispatch form input + 'is_information_row' => true, + 'i' => $i, + 'suffix' => $suffix, + 'objp' => $objp, ); $reshook = $hookmanager->executeHooks( 'printFieldListValue', @@ -1017,6 +1019,8 @@ if ($id > 0 || !empty($ref)) { // Enable hooks to append additional columns $parameters = array( 'is_information_row' => false, // this is a dispatch form row + 'i' => $i, + 'suffix' => $suffix, 'objp' => $objp, ); $reshook = $hookmanager->executeHooks(