mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Merge 82be7d9b7a into de8a55fa9d
This commit is contained in:
commit
2002c19ad9
|
|
@ -290,9 +290,6 @@ if (($action == 'updateline' || $action == 'updatesplitline') && !$cancel && $us
|
|||
$object->fetchTimeSpent(GETPOSTINT('lineid'));
|
||||
|
||||
$result = 0;
|
||||
if (in_array($object->timespent_fk_user, $childids) || $user->hasRight('projet', 'all', 'creer')) {
|
||||
$result = $object->delTimeSpent($user);
|
||||
}
|
||||
|
||||
$object->fetch($id_temp, $ref);
|
||||
|
||||
|
|
@ -314,7 +311,7 @@ if (($action == 'updateline' || $action == 'updatesplitline') && !$cancel && $us
|
|||
|
||||
$result = 0;
|
||||
if (in_array($object->timespent_fk_user, $childids) || $user->hasRight('projet', 'all', 'creer')) {
|
||||
$result = $object->addTimeSpent($user);
|
||||
$result = $object->updateTimeSpent($user);
|
||||
if ($result >= 0) {
|
||||
setEventMessages($langs->trans("RecordSaved"), null, 'mesgs');
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user