Fixing bug
This commit is contained in:
parent
8280447f3e
commit
8a48cd5989
@ -246,7 +246,8 @@ if (($action == 'updateline' || $action == 'updatesplitline') && !$cancel && $us
|
||||
|
||||
if (!$error) {
|
||||
if (GETPOST('taskid', 'int') != $id) { // GETPOST('taskid') is id of new task
|
||||
$id = GETPOST('taskid', 'int');
|
||||
$id_temp = GETPOST('taskid', 'int'); // should not overwrite $id
|
||||
|
||||
|
||||
$object->fetchTimeSpent(GETPOST('lineid', 'int'));
|
||||
|
||||
@ -255,7 +256,7 @@ if (($action == 'updateline' || $action == 'updatesplitline') && !$cancel && $us
|
||||
$result = $object->delTimeSpent($user);
|
||||
}
|
||||
|
||||
$object->fetch($id, $ref);
|
||||
$object->fetch($id_temp, $ref);
|
||||
|
||||
$object->timespent_note = GETPOST("timespent_note_line", 'alpha');
|
||||
$object->timespent_old_duration = GETPOST("old_duration");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user