mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-10 00:37:54 +02:00
* ProjectManager: allow datasources (eg. InfoLog) to set element category, update existing categories in elements to overwritten categories
This commit is contained in:
@ -25,7 +25,7 @@ class timesheet_datasource extends datasource
|
||||
parent::__construct(TIMESHEET_APP);
|
||||
|
||||
$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_PRICELIST_ID|PM_UNITPRICE|PM_RESOURCES|PM_DETAILS|PM_COMPLETION|PM_CAT_ID;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -62,6 +62,7 @@ class timesheet_datasource extends datasource
|
||||
'pe_used_quantity' => $data['ts_quantity'],
|
||||
'pe_used_budget' => $data['ts_quantity'] * $data['ts_unitprice'],
|
||||
'pe_completion' => 100,
|
||||
'cat_id' => $data['cat_id'],
|
||||
);
|
||||
if ($data['ts_duration'])
|
||||
{
|
||||
|
Reference in New Issue
Block a user