NEW users can set their own length for short lists

This commit is contained in:
Laurent Destailleur
2024-04-30 10:20:40 +02:00
parent 6b70b32f1e
commit 9393c2c0e2
5 changed files with 48 additions and 19 deletions

View File

@@ -1373,7 +1373,7 @@ class FormOther
$boxlista .= "\n<!-- Box left container -->\n";
// Define $box_max_lines
$box_max_lines = getDolGlobalInt('MAIN_SIZE_SHORTLIST_LIMIT', 6);
$box_max_lines = getDolUserInt('MAIN_SIZE_SHORTLIST_LIMIT', getDolGlobalInt('MAIN_SIZE_SHORTLIST_LIMIT', 5));
$ii = 0;
foreach ($boxactivated as $key => $box) {