1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 07:02:34 +01:00

Merge pull request #5454 from turbo124/v5-develop

Log Task status
This commit is contained in:
David Bomba 2021-04-17 08:51:40 +10:00 committed by GitHub
commit 2220d8ca59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -614,13 +614,14 @@ class TaskController extends BaseController
{ {
nlog($task); nlog($task);
$task = Task::where('id', $this->decodePrimaryKey($task)) $task_record = Task::where('id', $this->decodePrimaryKey($task))
->where('company_id', auth()->user()->company()->id) ->where('company_id', auth()->user()->company()->id)
->first(); ->first();
$task->status_sort_order = $key; nlog($task_record->id);
$task->status_id = $sort_status_id; $task_record->status_sort_order = $key;
$task->save(); $task_record->status_id = $sort_status_id;
$task_record->save();
} }
} }