mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
PHP 8.0 Fatal error: Declaration of timesheet_tracking::get_subject($data, $old) must be compatible with Api\Storage\Tracking::get_subject($data, $old, $deleted = null, $receiver = null)
This commit is contained in:
parent
9345152c98
commit
18a92797ad
@ -80,26 +80,6 @@ class timesheet_tracking extends Api\Storage\Tracking
|
||||
parent::__construct('timesheet');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a notification-config value
|
||||
*
|
||||
* @param string $name
|
||||
* - 'copy' array of email addresses notifications should be copied too, can depend on $data
|
||||
* - 'lang' string lang code for copy mail
|
||||
* - 'sender' string send email address
|
||||
* @param array $data current entry
|
||||
* @param array $old =null old/last state of the entry or null for a new entry
|
||||
* @return mixed
|
||||
*/
|
||||
function get_config($name,$data,$old=null)
|
||||
{
|
||||
$timesheet = $data['ts_id'];
|
||||
|
||||
//$config = $this->timesheet->notification[$timesheet][$name] ? $this->timesheet->notification[$timesheet][$name] : $this->$timesheet->notification[0][$name];
|
||||
//no nitify configert (ToDo)
|
||||
return $config;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the subject for a given entry, reimplementation for get_subject in Api\Storage\Tracking
|
||||
*
|
||||
@ -107,9 +87,11 @@ class timesheet_tracking extends Api\Storage\Tracking
|
||||
*
|
||||
* @param array $data
|
||||
* @param array $old
|
||||
* @param boolean $deleted =null can be set to true to let the tracking know the item got deleted or undeleted
|
||||
* @param int|string $receiver numeric account_id or email address
|
||||
* @return string
|
||||
*/
|
||||
function get_subject($data,$old)
|
||||
protected function get_subject($data,$old,$deleted=null,$receiver=null)
|
||||
{
|
||||
return '#'.$data['ts_id'].' - '.$data['ts_title'];
|
||||
}
|
||||
@ -119,9 +101,10 @@ class timesheet_tracking extends Api\Storage\Tracking
|
||||
*
|
||||
* @param array $data
|
||||
* @param array $old
|
||||
* @param int|string $receiver nummeric account_id or email address
|
||||
* @return string
|
||||
*/
|
||||
function get_message($data,$old)
|
||||
protected function get_message($data,$old,$receiver=null)
|
||||
{
|
||||
if (!$data['ts_modified'] || !$old)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user