From 1c87c6fd5d533a8bfe3c3db63e5be9c9104455f2 Mon Sep 17 00:00:00 2001 From: BENKE Charlene <1179011+defrance@users.noreply.github.com> Date: Sat, 5 Feb 2022 12:10:57 +0100 Subject: [PATCH] Update list.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit first introduce à type of totalisation --- htdocs/fichinter/list.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/fichinter/list.php b/htdocs/fichinter/list.php index 871d6511669..c61fa4b1393 100644 --- a/htdocs/fichinter/list.php +++ b/htdocs/fichinter/list.php @@ -7,6 +7,7 @@ * Copyright (C) 2015 Jean-François Ferry * Copyright (C) 2018 Ferran Marcet * Copyright (C) 2021 Frédéric France + * Copyright (C) 2022 Charlène Benke * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -739,9 +740,10 @@ if ($resql) { $totalarray['nbfield']++; } if (!$i) { + $totalarray['type'][$totalarray['nbfield']] = 'duration'; $totalarray['pos'][$totalarray['nbfield']] = 'fd.duree'; } - $totalarray['val']['fd.duree'] += convertSecondToTime($obj->duree, 'allhourmin'); + $totalarray['val']['fd.duree'] += $obj->duree; } // Action column print '';