Use the Contact#in_aspect? helper in aspect_membership_dropdown
This commit is contained in:
parent
cc3eeac98e
commit
89639edb3a
1 changed files with 1 additions and 1 deletions
|
|
@ -66,7 +66,7 @@ module AspectGlobalHelper
|
||||||
end
|
end
|
||||||
|
|
||||||
def aspect_membership_dropdown(contact, person, hang, aspect=nil)
|
def aspect_membership_dropdown(contact, person, hang, aspect=nil)
|
||||||
selected_aspects = all_aspects.select{|aspect| contact.aspect_memberships.detect{ |am| am.aspect_id == aspect.id } }
|
selected_aspects = all_aspects.select{|aspect| contact.in_aspect?(aspect.id) }
|
||||||
|
|
||||||
render "shared/aspect_dropdown",
|
render "shared/aspect_dropdown",
|
||||||
:selected_aspects => selected_aspects,
|
:selected_aspects => selected_aspects,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue