Fixes #1693 - hide soft-deletes assets from asset model view

This commit is contained in:
snipe
2016-04-19 04:55:16 -07:00
parent 7c710e3fbe
commit c4ea4f80b1
@@ -484,7 +484,7 @@ class AssetModelsController extends Controller
*/
public function getDataView($modelID)
{
$assets = Asset::where('model_id', '=', $modelID)->withTrashed()->with('company');
$assets = Asset::where('model_id', '=', $modelID)->with('company');
if (Input::has('search')) {
$assets = $assets->TextSearch(e(Input::get('search')));