mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 14:27:33 -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')) {
|
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);
|
$suppliers = $suppliers->orderBy('name', 'ASC')->paginate(50);
|
||||||
|
|
Loading…
Reference in a new issue