Rerun Feature 5388: Print Invoices (documents) list gets too long. Fixed by default...
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 12 May 2021 15:25:53 +0000 (17:25 +0200)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 12 May 2021 15:25:53 +0000 (17:25 +0200)
reporting/includes/reports_classes.inc

index 38973243e0de386d9c8aaa47c03636c943d5bda3..c96378f7337b99dc93d1b87651c47ec29e056f8d 100644 (file)
@@ -170,7 +170,9 @@ class BoxReports
        {
                global $path_to_root, $SysPrefs,
                        $type_shortcuts;
-               $day_range = (isset($SysPrefs->max_days_in_docs) ? $SysPrefs->max_days_in_docs : 180);
+               $day_range = get_company_pref("max_days_in_docs");
+               if (!$day_range)
+                       $day_range = 180;
                $st = '';
                        switch ($type)
                        {