From 596f5657bcc448fd0e0dea999a6fb6b5dd3878b5 Mon Sep 17 00:00:00 2001 From: Benjamin Meichsner Date: Fri, 3 Apr 2009 17:35:00 +0200 Subject: [PATCH] Fixed remote and non-remote link mixtures bug. --- app/controllers/finance/balancing_controller.rb | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/app/controllers/finance/balancing_controller.rb b/app/controllers/finance/balancing_controller.rb index 98c4dde7..d17da816 100644 --- a/app/controllers/finance/balancing_controller.rb +++ b/app/controllers/finance/balancing_controller.rb @@ -33,7 +33,10 @@ class Finance::BalancingController < ApplicationController :order => sort ) - case params[:view] + view = params[:view] + params[:view] = nil + + case view when 'editResults' render :partial => 'edit_results_by_articles' and return when 'groupsOverview' @@ -41,15 +44,6 @@ class Finance::BalancingController < ApplicationController when 'articlesOverview' render :partial => 'shared/articles_by_articles', :locals => {:order => @order} and return end - - respond_to do |format| - format.html # new.haml - format.js do - render :update do |page| - page.replace_html 'results', :partial => "edit_results_by_articles" - end - end - end end def edit_note