From 383a6350f5d6e00d56a1e2f8b5c96ea7b88111da Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 15 Nov 2021 17:49:43 +0100 Subject: [PATCH] fix PHP 8.0 Error: Undefined constant "TIMESHEET_APP" --- timesheet/inc/class.timesheet_datasource.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/timesheet/inc/class.timesheet_datasource.inc.php b/timesheet/inc/class.timesheet_datasource.inc.php index 3ab868b205..61309b9013 100644 --- a/timesheet/inc/class.timesheet_datasource.inc.php +++ b/timesheet/inc/class.timesheet_datasource.inc.php @@ -7,8 +7,8 @@ * @package timesheet * @copyright (c) 2005-16 by Ralf Becker * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License - * @version $Id$ */ + use EGroupware\Api\Link; use EGroupware\Api\Acl; @@ -24,7 +24,7 @@ class timesheet_datasource extends datasource */ function __construct() { - parent::__construct(TIMESHEET_APP); + parent::__construct('timesheet'); $this->valid = PM_REAL_START|PM_REAL_END|PM_USED_TIME|PM_USED_BUDGET|PM_USED_QUANTITY| PM_PRICELIST_ID|PM_UNITPRICE|PM_RESOURCES|PM_DETAILS|PM_COMPLETION|PM_CAT_ID;