diff --git a/app/assets/javascripts/app/controllers/ticket_overview.coffee b/app/assets/javascripts/app/controllers/ticket_overview.coffee index edc64398a..1bc014fca 100644 --- a/app/assets/javascripts/app/controllers/ticket_overview.coffee +++ b/app/assets/javascripts/app/controllers/ticket_overview.coffee @@ -1281,7 +1281,7 @@ class BulkForm extends App.Controller continue if attribute.name != 'owner_id' {users, groups} = @validUsersForTicketSelection() options = _.map(users, (user) -> {value: user.id, name: user.displayName()} ) - attribute.alternative_user_options = options + attribute.possible_groups_owners = options new App.ControllerForm( el: @$('#form-ticket-bulk') diff --git a/app/assets/javascripts/app/controllers/ticket_zoom/owner_handler_dependencies.coffee b/app/assets/javascripts/app/controllers/ticket_zoom/owner_handler_dependencies.coffee index ae57b7c2c..74a853876 100644 --- a/app/assets/javascripts/app/controllers/ticket_zoom/owner_handler_dependencies.coffee +++ b/app/assets/javascripts/app/controllers/ticket_zoom/owner_handler_dependencies.coffee @@ -7,14 +7,14 @@ class OwnerFormHandlerDependencies owner_attribute = _.find(attributes, (o) -> o.name == 'owner_id') return if !owner_attribute - return if 'alternative_user_options' not of owner_attribute + return if 'possible_groups_owners' not of owner_attribute - # fetch contents using User relation if a Group has been selected, otherwise render alternative_user_options + # fetch contents using User relation if a Group has been selected, otherwise render possible_groups_owners if params.group_id owner_attribute.relation = 'User' delete owner_attribute['options'] else - owner_attribute.options = owner_attribute.alternative_user_options + owner_attribute.options = owner_attribute.possible_groups_owners delete owner_attribute['relation'] # replace new option list