From 5cf18de2c5978bdf6341be36f378c1c2a9caaede Mon Sep 17 00:00:00 2001 From: ralf Date: Thu, 21 Dec 2023 11:30:28 +0200 Subject: [PATCH] fix class "Accounts" not found --- timesheet/inc/class.timesheet_ui.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/timesheet/inc/class.timesheet_ui.inc.php b/timesheet/inc/class.timesheet_ui.inc.php index 7f25579ab4..2ece32adf6 100644 --- a/timesheet/inc/class.timesheet_ui.inc.php +++ b/timesheet/inc/class.timesheet_ui.inc.php @@ -497,7 +497,7 @@ class timesheet_ui extends timesheet_bo ]; $sel_options['ts_owner'] = $edit_grants; // Special handling for if you have a LOT of accounts - use a regular account widget - if(count($sel_options['ts_owner']) > Accounts::HUGE_LIMIT) + if(count($sel_options['ts_owner']) > Api\Accounts::HUGE_LIMIT) { unset($sel_options['ts_owner']); $etpl->setElementAttribute('ts_owner', 'type', 'et2-select-account'); @@ -1044,7 +1044,7 @@ class timesheet_ui extends timesheet_bo 'ts_status' => $this->status_labels + array(lang('No status')), ); // Special handling for if you have a LOT of accounts - use a regular account widget - if(count($sel_options['ts_owner']) > Accounts::HUGE_LIMIT) + if(count($sel_options['ts_owner']) > Api\Accounts::HUGE_LIMIT) { unset($sel_options['ts_owner']); $etpl->setElementAttribute('ts_owner', 'type', 'et2-nextmatch-header-account');