mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-02 08:21:09 -08:00
Duh. Helps if you actually assign the array first.
This commit is contained in:
parent
447833c996
commit
c0e50be03e
|
@ -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'))
|
||||||
|
|
Loading…
Reference in a new issue