diff --git a/app/controllers/people_controller.rb b/app/controllers/people_controller.rb index c54f8ef17..3115f1f1b 100644 --- a/app/controllers/people_controller.rb +++ b/app/controllers/people_controller.rb @@ -146,8 +146,6 @@ class PeopleController < ApplicationController @aspect = :profile @contacts_of_contact = @contact.contacts.paginate(:page => params[:page], :per_page => (params[:limit] || 15)) @hashes = hashes_for_people @contacts_of_contact, @aspects - @aspects_with_person = @contact.aspects - @aspect_ids = @aspects_with_person.map(&:id) else flash[:error] = I18n.t 'people.show.does_not_exist' redirect_to people_path diff --git a/app/views/people/contacts.haml b/app/views/people/contacts.haml index 1c7b302d3..c53f15781 100644 --- a/app/views/people/contacts.haml +++ b/app/views/people/contacts.haml @@ -16,6 +16,6 @@ = render 'people/sub_header', :person => @person, :contact => @contact #people_stream.stream - - for hash in @hashes + - @hashes.each do |hash| = render :partial => 'people/person', :locals => hash = will_paginate @contacts_of_contact