Improved fix for wrong owner_id condition workaround.

This commit is contained in:
Martin Edenhofer 2012-05-02 12:42:25 +02:00
parent 42bbb74bce
commit 031ed7cc1e

View file

@ -13,7 +13,7 @@ class TicketOverviewsController < ApplicationController
# for cleanup reasons, remove me later! # for cleanup reasons, remove me later!
overview.condition.each { |item, value | overview.condition.each { |item, value |
if item == 'owner_id' if item == 'owner_id' && overview.condition[item] != 1
overview.condition[item] = 'current_user.id' overview.condition[item] = 'current_user.id'
end end
} }