Skip to content

Commit 83c6371

Browse files
committed
Merge pull request #640 from madd15/patch-3
Fix #637 - Remove Deleted Models from drop down
2 parents e72577c + 33dd59f commit 83c6371

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/controllers/admin/AssetsController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ public function getCreate($model_id = null)
9090
$model_list = array('' => 'Select a Model') + DB::table('models')
9191
->select(DB::raw('concat(name," / ",modelno) as name, id'))->orderBy('name', 'asc')
9292
->orderBy('modelno', 'asc')
93+
->whereNull('deleted_at')
9394
->lists('name', 'id');
9495

9596

0 commit comments

Comments
 (0)