Fixes #1693 - hide soft-deletes assets from asset model view
This commit is contained in:
@@ -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')));
|
||||
|
||||
Reference in New Issue
Block a user