This commit is contained in:
snipe 2016-06-03 11:48:20 -07:00
parent b28d966645
commit f8ac9a3f77

View file

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