mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
parent
86fef3f40a
commit
0114373468
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue