Fixed group selection if no group is selected.
This commit is contained in:
parent
1662c8468b
commit
aa9a8d2d69
1 changed files with 4 additions and 0 deletions
|
@ -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]
|
||||
|
||||
|
|
Loading…
Reference in a new issue