From 031ed7cc1e5114e6e4ca8b2269762357b7eac5b4 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 2 May 2012 12:42:25 +0200 Subject: [PATCH] Improved fix for wrong owner_id condition workaround. --- app/controllers/ticket_overviews_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/ticket_overviews_controller.rb b/app/controllers/ticket_overviews_controller.rb index 82c68029e..9883155be 100644 --- a/app/controllers/ticket_overviews_controller.rb +++ b/app/controllers/ticket_overviews_controller.rb @@ -13,7 +13,7 @@ class TicketOverviewsController < ApplicationController # for cleanup reasons, remove me later! overview.condition.each { |item, value | - if item == 'owner_id' + if item == 'owner_id' && overview.condition[item] != 1 overview.condition[item] = 'current_user.id' end }