From 5bdb7d1b98a01d2982d94b74abf87a1a85a76786 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 25 Nov 2017 23:28:00 +0100 Subject: [PATCH] Fix line "none" must not be visible if there is lines --- htdocs/compta/facture/prelevement.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/compta/facture/prelevement.php b/htdocs/compta/facture/prelevement.php index e2291812b83..16e24b2b7b0 100644 --- a/htdocs/compta/facture/prelevement.php +++ b/htdocs/compta/facture/prelevement.php @@ -520,6 +520,7 @@ if ($object->id > 0) dol_fiche_end(); + $numopen = 0; $numclosed = 0; /* * Withdrawal opened requests @@ -540,6 +541,7 @@ if ($object->id > 0) if ($result_sql) { $num = $db->num_rows($result_sql); + $numopen = $num; } @@ -690,7 +692,7 @@ if ($object->id > 0) $i++; } - if (! $numclosed) + if (! $numopen && ! $numclosed) print ''.$langs->trans("None").''; $db->free($result);