3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-05-12 17:45:31 +00:00

Make eol, notes sortable on asset model

This commit is contained in:
snipe
2017-01-13 08:41:17 -08:00
parent ae540af2a9
commit edca6ad19d
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ class AssetModelsController extends Controller
public function index(Request $request)
{
$this->authorize('view', AssetModel::class);
$allowed_columns = ['id','name','created_at'];
$allowed_columns = ['id','image','name','model_number','eol','notes','created_at'];
$assetmodels = AssetModel::select(['id','image','name','model_number','eol','notes','created_at'])
->with('category','depreciation', 'manufacturer','fieldset')