fixed user#move_contact. from/to aspects were incorrectly ordered in method call in aspect_controller.

This commit is contained in:
danielvincent 2010-12-19 17:50:07 -08:00
parent 6357cd3b95
commit 6d63a5d3c5

View file

@ -98,7 +98,7 @@ class AspectsController < ApplicationController
@from_aspect = current_user.aspects.find(params[:from])
@to_aspect = current_user.aspects.find(params[:to][:to])
unless current_user.move_contact( @person, @from_aspect, @to_aspect)
unless current_user.move_contact( @person, @to_aspect, @from_aspect)
flash[:error] = I18n.t 'aspects.move_contact.error',:inspect => params.inspect
end
if aspect = current_user.aspect_by_id(params[:to][:to])