Browse files

problem with fcbkcomplete and groups creation solved

  • Loading branch information...
1 parent ba88b7e commit 4ab73547e837c17bff757a7144ee16cb43654e74 @jaime1988 jaime1988 committed Jun 24, 2011
Showing with 3 additions and 2 deletions.
  1. +1 −1 app/controllers/contacts_controller.rb
  2. +2 −1 app/models/group.rb
View
2 app/controllers/contacts_controller.rb
@@ -14,7 +14,7 @@ def index
respond_to do |format|
format.html { @contacts = Kaminari.paginate_array(@contacts).page(params[:page]).per(10) }
format.js { @contacts = Kaminari.paginate_array(@contacts).page(params[:page]).per(10) }
- format.json { render :text => @contacts.map{ |c| { 'key' => c.name, 'value' => c.slug } }.to_json }
+ format.json { render :text => @contacts.map{ |c| { 'key' => c.id.to_s, 'value' => c.name } }.to_json }
end
end
View
3 app/models/group.rb
@@ -40,7 +40,8 @@ def create_participants
@_participants.each do |participant|
- participant_actor = Actor.find_by_slug!(participant)
+ #participant_actor = Actor.find_by_slug!(participant)
+ participant_actor = Actor.find_by_id!(participant)
sent_ties.create! :receiver => participant_actor,
:relation => relation_customs.sort.first

0 comments on commit 4ab7354

Please sign in to comment.