people.diaspora_handle, not profiles.diaspora_handle

This commit is contained in:
Raphael Sofaer 2011-05-03 11:39:34 -07:00
parent 45c5cd4b95
commit 87864bf4ff

View file

@ -56,7 +56,8 @@ class ConversationsController < ApplicationController
end end
def new def new
all_contacts_and_ids = Contact.connection.execute(current_user.contacts.joins(:person => :profile).select("contacts.id, profiles.first_name, profiles.last_name, profiles.diaspora_handle").to_sql).map do |r| all_contacts_and_ids = Contact.connection.execute(current_user.contacts.joins(:person => :profile
).select("contacts.id, profiles.first_name, profiles.last_name, people.diaspora_handle").to_sql).map do |r|
{:value => r[0], {:value => r[0],
:name => Person.name_from_attrs(r[1], r[2], r[3]).gsub(/(")/, "'")} :name => Person.name_from_attrs(r[1], r[2], r[3]).gsub(/(")/, "'")}
end end