This commit is contained in:
Jo Drexl 2021-03-22 20:57:26 +01:00 committed by GitHub
parent 86fef3f40a
commit 0114373468
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -78,7 +78,7 @@ final class Company extends SnipeModel
$company_id = null; $company_id = null;
} }
$table = ($table_name) ? DB::getTablePrefix().$table_name."." : ''; $table = ($table_name) ? $table_name."." : '';
if(\Schema::hasColumn($query->getModel()->getTable(), $column)){ if(\Schema::hasColumn($query->getModel()->getTable(), $column)){
return $query->where($table.$column, '=', $company_id); return $query->where($table.$column, '=', $company_id);