mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
fix Scrutinizer "bugs"
This commit is contained in:
parent
4db7e2fb94
commit
66c34f012d
@ -44,10 +44,13 @@ class timesheet_egw_record implements importexport_iface_egw_record
|
||||
public function __construct( $_identifier='' ){
|
||||
$this->identifier = $_identifier;
|
||||
$this->botimesheet = new timesheet_bo();
|
||||
$data = $this->botimesheet->read($this->identifier);
|
||||
// set ts_project from ts_project_blur, where it get moved, if it is no custom value
|
||||
if (empty($data['ts_project'])) $data['ts_project'] = $data['ts_project_blur'];
|
||||
$this->set_record($data);
|
||||
|
||||
if (($data = $this->botimesheet->read($this->identifier)))
|
||||
{
|
||||
// set ts_project from ts_project_blur, where it get moved, if it is no custom value
|
||||
if (empty($data['ts_project'])) $data['ts_project'] = $data['ts_project_blur'];
|
||||
$this->set_record($data);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user