mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 22:37:28 -08:00
Fixes #2110
This commit is contained in:
parent
b28d966645
commit
f8ac9a3f77
|
@ -303,7 +303,7 @@ class CategoriesController extends Controller
|
||||||
public function getDataViewAssets($categoryID) {
|
public function getDataViewAssets($categoryID) {
|
||||||
|
|
||||||
$category = Category::with('assets.company')->find($categoryID);
|
$category = Category::with('assets.company')->find($categoryID);
|
||||||
$category_assets = $category->assets;
|
$category_assets = $category->assets();
|
||||||
|
|
||||||
if (Input::has('search')) {
|
if (Input::has('search')) {
|
||||||
$category_assets = $category_assets->TextSearch(e(Input::get('search')));
|
$category_assets = $category_assets->TextSearch(e(Input::get('search')));
|
||||||
|
|
Loading…
Reference in a new issue