From f9cb2092620326c6987da53f29ab3cb222d5936c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 31 Jan 2022 12:18:04 +0100 Subject: [PATCH] Fix max nb of lines in supplier index page --- htdocs/fourn/facture/index.php | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/htdocs/fourn/facture/index.php b/htdocs/fourn/facture/index.php index 21d3e4cfa58..9546d434bb9 100644 --- a/htdocs/fourn/facture/index.php +++ b/htdocs/fourn/facture/index.php @@ -27,9 +27,6 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php'; require_once DOL_DOCUMENT_ROOT.'/core/class/dolgraph.class.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/invoice.lib.php'; -// Security check -restrictedArea($user, 'fournisseur', 0, '', 'facture'); - // Load translation files required by the page $langs->loadLangs(['bills', 'boxes']); @@ -47,9 +44,21 @@ $maxDraftCount = empty($conf->global->MAIN_MAXLIST_OVERLOAD) ? 500 : $conf->glob $maxLatestEditCount = 5; $maxOpenCount = empty($conf->global->MAIN_MAXLIST_OVERLOAD) ? 500 : $conf->global->MAIN_MAXLIST_OVERLOAD; +// Security check +restrictedArea($user, 'fournisseur', 0, '', 'facture'); + + /* -* View -*/ + * Actions + */ + +// None + + + +/* + * View + */ llxHeader("", $langs->trans("SupplierInvoicesArea"), 'EN:Suppliers_Invoices|FR:FactureFournisseur|ES:Facturas_de_proveedores'); @@ -64,7 +73,7 @@ if ($tmp) { print '
'; } -$tmp = getDraftSupplierTable($maxDraftCount, $socid); +$tmp = getDraftSupplierTable($max, $socid); if ($tmp) { print $tmp; print '
';