Fixed search string on suppliers selectlist

This commit is contained in:
snipe 2017-11-01 21:55:17 -07:00
parent e11f9313f0
commit 4f008e118f

View file

@ -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);