Fixed check if init owner selection of new ticket screen is empty.

This commit is contained in:
Martin Edenhofer 2015-01-24 13:51:04 +01:00
parent afc241e72a
commit c873789385

View file

@ -103,7 +103,7 @@ returns
agents[ user.id ] = 1 agents[ user.id ] = 1
} }
dependencies = { :group_id => { '' => [] } } dependencies = { :group_id => { '' => { :owner_id => [] } } }
Group.where( :active => true ).each { |group| Group.where( :active => true ).each { |group|
assets = group.assets(assets) assets = group.assets(assets)
dependencies[:group_id][group.id] = { :owner_id => [] } dependencies[:group_id][group.id] = { :owner_id => [] }