* ProjectManager: allow datasources (eg. InfoLog) to set element category, update existing categories in elements to overwritten categories

This commit is contained in:
Ralf Becker
2012-06-19 16:51:41 +00:00
parent aa58708ffd
commit 3aac26d1ab
3 changed files with 15 additions and 4 deletions

View File

@ -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'])
{