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

Log Task status

This commit is contained in:
David Bomba 2021-04-17 08:51:24 +10:00
parent 8588ba9969
commit bc9ff3efae

View File

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