From aa9a8d2d69f488dd590b53dd8be310f92b66f018 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 21 Feb 2013 23:33:10 +0100 Subject: [PATCH] Fixed group selection if no group is selected. --- .../javascripts/app/controllers/customer_ticket_new.js.coffee | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/assets/javascripts/app/controllers/customer_ticket_new.js.coffee b/app/assets/javascripts/app/controllers/customer_ticket_new.js.coffee index 618d5fe2a..c4fb49d87 100644 --- a/app/assets/javascripts/app/controllers/customer_ticket_new.js.coffee +++ b/app/assets/javascripts/app/controllers/customer_ticket_new.js.coffee @@ -94,6 +94,10 @@ class Index extends App.Controller group_ids = App.Config.get('customer_ticket_create_group_ids') # return all groups if no one is selected + return collection if !group_ids + return collection if !_.isArray( group_ids ) && group_ids is '' + return collection if _.isEmpty( group_ids ) + if !_.isArray( group_ids ) group_ids = [group_ids]