mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-12 14:12:44 +01:00
Allow the API to update is_running fields in tasks (#1472)
This commit is contained in:
parent
2d5d08b172
commit
4a75925f5d
@ -146,6 +146,8 @@ class TaskRepository extends BaseRepository
|
||||
} elseif ($data['action'] == 'stop' && $task->is_running) {
|
||||
$timeLog[count($timeLog) - 1][1] = time();
|
||||
$task->is_running = false;
|
||||
} elseif ($data['action'] == 'offine'){
|
||||
$task->is_running = $data['is_running'];
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user