fix PHP 8.0 Error: Undefined constant "TIMESHEET_APP"

This commit is contained in:
Ralf Becker 2021-11-15 17:49:43 +01:00
parent dfb1a3be22
commit 383a6350f5

View File

@ -7,8 +7,8 @@
* @package timesheet
* @copyright (c) 2005-16 by Ralf Becker <RalfBecker-AT-outdoor-training.de>
* @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;