From a0f0b3c93b2cc84dea36e28178a39dcacf3c22dd Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Thu, 19 Feb 2015 11:14:25 +1100 Subject: [PATCH] display only activated enterprises to add to groups --- app/views/admin/enterprise_groups/_inputs.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/enterprise_groups/_inputs.html.haml b/app/views/admin/enterprise_groups/_inputs.html.haml index 60181e09c4..a9e911700a 100644 --- a/app/views/admin/enterprise_groups/_inputs.html.haml +++ b/app/views/admin/enterprise_groups/_inputs.html.haml @@ -28,7 +28,7 @@ = f.field_container :enterprise_ids do = f.label :enterprise_ids, 'Enterprises' %br/ - = f.collection_select :enterprise_ids, Enterprise.all, :id, :name, {}, {class: "select2 fullwidth", multiple: true} + = f.collection_select :enterprise_ids, Enterprise.activated, :id, :name, {}, {class: "select2 fullwidth", multiple: true} %fieldset.alpha.no-border-bottom{ ng: { show: "menu.selected.name=='About'" } } %legend About