fix class "Accounts" not found

This commit is contained in:
ralf 2023-12-21 11:30:28 +02:00
parent f2bf0902f6
commit 1bec0c94a4

View File

@ -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');