Merge pull request #3325 from atm-ph/3.6_fix_timespent_id
FIX no projet_task_time id from trigger TASK_TIMESPENT_CREATE
This commit is contained in:
commit
c2eb47f3a1
@ -770,7 +770,8 @@ class Task extends CommonObject
|
|||||||
{
|
{
|
||||||
$tasktime_id = $this->db->last_insert_id(MAIN_DB_PREFIX."projet_task_time");
|
$tasktime_id = $this->db->last_insert_id(MAIN_DB_PREFIX."projet_task_time");
|
||||||
$ret = $tasktime_id;
|
$ret = $tasktime_id;
|
||||||
|
$this->timespent_id = $ret;
|
||||||
|
|
||||||
if (! $notrigger)
|
if (! $notrigger)
|
||||||
{
|
{
|
||||||
// Call triggers
|
// Call triggers
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user