Skip to content

Commit

Permalink
Fix edit model cat list showing deleted categories
Browse files Browse the repository at this point in the history
  • Loading branch information
madd15 committed Jul 23, 2015
1 parent 27fe904 commit 6d1197a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/admin/ModelsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public function getEdit($modelId = null)

$depreciation_list = array('' => 'Do Not Depreciate') + Depreciation::lists('name', 'id');
$manufacturer_list = array('' => 'Select One') + Manufacturer::lists('name', 'id');
$category_list = array('' => '') + DB::table('categories')->lists('name', 'id');
$category_list = array('' => '') + DB::table('categories')->whereNull('deleted_at')->lists('name', 'id');
$view = View::make('backend/models/edit', compact('model'));
$view->with('category_list',$category_list);
$view->with('depreciation_list',$depreciation_list);
Expand Down

0 comments on commit 6d1197a

Please sign in to comment.