1
0
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:
David Bomba 2017-05-03 11:18:30 +10:00 committed by GitHub
parent 2d5d08b172
commit 4a75925f5d

View File

@ -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'];
}
}