Merge pull request #19252 from hregis/fix_totalarray_is_overwritten

FIX $totalarray is overwritten, totals were lost
This commit is contained in:
Laurent Destailleur 2021-10-31 13:56:37 +01:00 committed by GitHub
commit 6054e23b4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -195,6 +195,7 @@ $now = dol_now();
$help_url = 'EN:Module_Stocks_En|FR:Module_Stock|ES:Módulo_Stocks';
$title = $langs->trans("ListOfWarehouses");
$totalarray = array();
// Build and execute select
// --------------------------------------------------------------------
@ -566,7 +567,6 @@ print '</tr>'."\n";
// Loop on record
// --------------------------------------------------------------------
$i = 0;
$totalarray = array();
$warehouse = new Entrepot($db);