Duh. Helps if you actually assign the array first.

This commit is contained in:
snipe 2017-10-18 08:45:05 -07:00
parent 447833c996
commit c0e50be03e

View file

@ -376,16 +376,16 @@ class AssetModelsController extends Controller
*/ */
public function postBulkEdit(Request $request) public function postBulkEdit(Request $request)
{ {
if (is_array($models_raw_array)) {
$models_raw_array = Input::get('ids'); $models_raw_array = Input::get('ids');
$models = AssetModel::whereIn('id', $models_raw_array)->get();
$nochange = ['NC' => 'No Change']; if (is_array($models_raw_array)) {
$fieldset_list = $nochange + Helper::customFieldsetList(); $models = AssetModel::whereIn('id', $models_raw_array)->get();
$depreciation_list = $nochange + Helper::depreciationList(); $nochange = ['NC' => 'No Change'];
$category_list = $nochange + Helper::categoryList('asset'); $fieldset_list = $nochange + Helper::customFieldsetList();
$manufacturer_list = $nochange + Helper::manufacturerList(); $depreciation_list = $nochange + Helper::depreciationList();
$category_list = $nochange + Helper::categoryList('asset');
$manufacturer_list = $nochange + Helper::manufacturerList();
return view('models/bulk-edit', compact('models')) return view('models/bulk-edit', compact('models'))