forked from extern/egroupware
fixed sometimes not working setting of multiple status (timesheet_bo::read($td_id) require ts_id as parameter not array("ts_id" => $ts_id)!)
This commit is contained in:
parent
469f938967
commit
5a9e552fd8
@ -566,12 +566,11 @@ class timesheet_bo extends so_sql_cf
|
||||
}
|
||||
$ts_id = is_null($keys) ? $this->data['ts_id'] : $keys['ts_id'];
|
||||
|
||||
if (!$this->check_acl(EGW_ACL_EDIT,$ts_id))
|
||||
if (!$this->check_acl(EGW_ACL_EDIT,$ts_id) || !$this->read($ts_id,true))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
$this->read($keys,true);
|
||||
$this->data['ts_status'] = $status;
|
||||
if ($this->save($ts_id)!=0) $ret = false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user