From 01143734682944a9859fd6331f87945e3d1e1d61 Mon Sep 17 00:00:00 2001 From: Jo Drexl Date: Mon, 22 Mar 2021 20:57:26 +0100 Subject: [PATCH] Fixing #9224 (#9328) --- app/Models/Company.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Company.php b/app/Models/Company.php index e6bd3dd773..04f138ccd0 100644 --- a/app/Models/Company.php +++ b/app/Models/Company.php @@ -78,7 +78,7 @@ final class Company extends SnipeModel $company_id = null; } - $table = ($table_name) ? DB::getTablePrefix().$table_name."." : ''; + $table = ($table_name) ? $table_name."." : ''; if(\Schema::hasColumn($query->getModel()->getTable(), $column)){ return $query->where($table.$column, '=', $company_id);