Merge pull request #29151 from defrance/patch-328

totalarray must not reinit here
This commit is contained in:
Laurent Destailleur
2024-03-31 15:59:06 +02:00
committed by GitHub

View File

@@ -1127,7 +1127,7 @@ if (getDolGlobalString('PROJECT_TIMES_SPENT_FORMAT')) {
// --------------------------------------------------------------------
$i = 0;
$savnbfield = $totalarray['nbfield'];
$totalarray = array();
$totalarray['nbfield'] = 0;
$imaxinloop = ($limit ? min($num, $limit) : $num);
while ($i < $imaxinloop) {