mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 13:44:06 -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) {
|
||||
|
||||
$category = Category::with('assets.company')->find($categoryID);
|
||||
$category_assets = $category->assets;
|
||||
$category_assets = $category->assets();
|
||||
|
||||
if (Input::has('search')) {
|
||||
$category_assets = $category_assets->TextSearch(e(Input::get('search')));
|
||||
|
|
Loading…
Reference in a new issue