From 6d63a5d3c525c6c5ef68635fa3430de013109003 Mon Sep 17 00:00:00 2001 From: danielvincent Date: Sun, 19 Dec 2010 17:50:07 -0800 Subject: [PATCH] fixed user#move_contact. from/to aspects were incorrectly ordered in method call in aspect_controller. --- app/controllers/aspects_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/aspects_controller.rb b/app/controllers/aspects_controller.rb index 4d6449946..5129b8c87 100644 --- a/app/controllers/aspects_controller.rb +++ b/app/controllers/aspects_controller.rb @@ -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])