mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Fixed search string on suppliers selectlist
This commit is contained in:
parent
e11f9313f0
commit
4f008e118f
|
@ -155,7 +155,7 @@ class SuppliersController extends Controller
|
|||
]);
|
||||
|
||||
if ($request->has('search')) {
|
||||
$suppliers = $suppliers->where('locations.name', 'LIKE', '%'.$request->get('search').'%');
|
||||
$suppliers = $suppliers->where('suppliers.name', 'LIKE', '%'.$request->get('search').'%');
|
||||
}
|
||||
|
||||
$suppliers = $suppliers->orderBy('name', 'ASC')->paginate(50);
|
||||
|
|
Loading…
Reference in a new issue