[Rt-commit] rt branch, 4.0/limit-custom-field-queue-syntax, created. rt-4.0.14rc1-1-g317565e

Thomas Sibley trs at bestpractical.com
Wed Jul 17 02:15:26 EDT 2013


The branch, 4.0/limit-custom-field-queue-syntax has been created
        at  317565e706e0a78007ddb7b98895210ac3a490a9 (commit)

- Log -----------------------------------------------------------------
commit 317565e706e0a78007ddb7b98895210ac3a490a9
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Tue Jul 16 22:59:07 2013 -0700

    TicketSQL queue-specific CF syntax is CF.Queue.{Name} not CF.{Queue}.{Name}
    
    This bug was introduced by bd2bbef, but only manifests when QUEUE is
    passed to RT::Tickets->LimitCustomField.  Such an invocation is never
    called in core RT.

diff --git a/lib/RT/Tickets.pm b/lib/RT/Tickets.pm
index 480b8b3..f4cc7a5 100644
--- a/lib/RT/Tickets.pm
+++ b/lib/RT/Tickets.pm
@@ -2890,7 +2890,7 @@ sub LimitCustomField {
     $self->Limit(
         VALUE => $args{VALUE},
         FIELD => "CF"
-            .(defined $args{'QUEUE'}? ".{$args{'QUEUE'}}" : '' )
+            .(defined $args{'QUEUE'}? ".$args{'QUEUE'}" : '' )
             .".{" . $CF->Name . "}",
         OPERATOR    => $args{OPERATOR},
         CUSTOMFIELD => 1,

-----------------------------------------------------------------------


More information about the Rt-commit mailing list