webERP Forum

Full Version: DefaultDisplayRecordsMax Is Ignored?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
SelectProduct.php is ignoring this system configuration value.

A search shows $_SESSION['DisplayRecordsMax'] occurs in 18 files while $_SESSION['DefaultDisplayRecordsMax'] only occurs in 10 files.

Could this be part of the issue?
Never mind... I just found this is a per-User setting...
Wihch leads me to ask... Why two settings in two places?
$_SESSION['DisplayRecordsMax'] is a user specific setting whereas is global. When a new user is being created it should default to the global setting. IMHO $_SESSION['DisplayRecordsMax'] should be used in the scripts, which is what I try to remember to do when I am writing them.

Tim
(01-17-2018, 06:42 PM)falkoner Wrote: [ -> ]$_SESSION['DisplayRecordsMax'] is a user specific setting whereas is global. When a new user is being created it should default to the global setting. IMHO $_SESSION['DisplayRecordsMax'] should be used in the scripts, which is what I try to remember to do when I am writing them.

Tim

Ah... Now THAT makes sense. Thank you so much for clarifying.
Reading my post back it should of course read "whereas $_SESSION['DefaultDisplayRecordsMax'] is global" but I am glad it made sense anyway Big Grin