From 2dfda73eeb3eae2d4f894099754794ef07d060dd Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 18 Dec 2009 00:41:34 +0000 Subject: import rt 3.6.10 --- rt/lib/RT/Tickets_Overlay_SQL.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'rt/lib/RT/Tickets_Overlay_SQL.pm') diff --git a/rt/lib/RT/Tickets_Overlay_SQL.pm b/rt/lib/RT/Tickets_Overlay_SQL.pm index 4531a1690..11124302c 100644 --- a/rt/lib/RT/Tickets_Overlay_SQL.pm +++ b/rt/lib/RT/Tickets_Overlay_SQL.pm @@ -2,7 +2,7 @@ # # COPYRIGHT: # -# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +# This software is Copyright (c) 1996-2009 Best Practical Solutions, LLC # # # (Except where explicitly superseded by other copyright notices) @@ -24,7 +24,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301 or visit their web page on the internet at -# http://www.gnu.org/copyleft/gpl.html. +# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. # # # CONTRIBUTION SUBMISSION POLICY: @@ -290,6 +290,9 @@ sub _parser { $key =~ s!\\(.)!$1!g; $val =~ s!\\(.)!$1!g; # print "$ea Key=[$key] op=[$op] val=[$val]\n"; + + # replace __CurrentUser__ with id + $val = $self->CurrentUser->id if $val eq '__CurrentUser__'; my $subkey = ''; -- cgit v1.2.1