1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Merge pull request #5836 from turbo124/v5-develop

Fixes for archived/deleted task reordering
This commit is contained in:
David Bomba 2021-05-27 09:59:34 +10:00 committed by GitHub
commit ad11e11233
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -631,6 +631,7 @@ class TaskController extends BaseController
$task_status = TaskStatus::where('id', $this->decodePrimaryKey($task_status_hashed_id))
->where('company_id', auth()->user()->company()->id)
->withTrashed()
->first();
$task_status->status_order = $key;
@ -648,6 +649,7 @@ class TaskController extends BaseController
$task_record = Task::where('id', $this->decodePrimaryKey($task))
->where('company_id', auth()->user()->company()->id)
->withTrashed()
->first();
$task_record->status_order = $key;

View File

@ -270,7 +270,7 @@ class MultiDB
return false;
}
public static function findAndSetDbByDomain($query_array) :bool
public static function findAndSetDbByDomain($query_array)
{
if (! config('ninja.db.multi_db_enabled'))