diff --git a/app/Http/Controllers/TaskController.php b/app/Http/Controllers/TaskController.php index 59778047a259..1f67a4be2d37 100644 --- a/app/Http/Controllers/TaskController.php +++ b/app/Http/Controllers/TaskController.php @@ -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; diff --git a/app/Libraries/MultiDB.php b/app/Libraries/MultiDB.php index 2b0fbcfa6ff8..f47f88c26a57 100644 --- a/app/Libraries/MultiDB.php +++ b/app/Libraries/MultiDB.php @@ -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'))