[Rt-commit] rt branch, 4.0/limittoglobal-fix, created. rt-4.0.1rc1-35-ga324304

Shawn Moore sartak at bestpractical.com
Tue Jun 14 14:37:52 EDT 2011


The branch, 4.0/limittoglobal-fix has been created
        at  a324304cd60e1b04c474fe532bae9701e015552f (commit)

- Log -----------------------------------------------------------------
commit a324304cd60e1b04c474fe532bae9701e015552f
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Tue Jun 14 14:36:44 2011 -0400

    LimitToGlobal doesn't take any parameters

diff --git a/lib/RT/Templates.pm b/lib/RT/Templates.pm
index 380beee..9bdbc62 100644
--- a/lib/RT/Templates.pm
+++ b/lib/RT/Templates.pm
@@ -101,7 +101,6 @@ which can be used with any queue.
 
 sub LimitToGlobal {
     my $self = shift;
-    my $queue_id = shift;
     $self->Limit(FIELD => 'Queue',
                  VALUE => "0",
                  OPERATOR => '='
diff --git a/share/html/Admin/Elements/SelectTemplate b/share/html/Admin/Elements/SelectTemplate
index 0d3cbb2..1aee97b 100755
--- a/share/html/Admin/Elements/SelectTemplate
+++ b/share/html/Admin/Elements/SelectTemplate
@@ -66,13 +66,12 @@ $PrimaryTemplates->OrderBy(FIELD => 'Name');
 }
 
 my $OtherTemplates = RT::Templates->new($session{'CurrentUser'});
-$OtherTemplates->LimitToGlobal($DefaultQueue);
+$OtherTemplates->LimitToGlobal;
 $OtherTemplates->OrderBy(FIELD => 'Name');
 
 </%INIT>
 <%ARGS>
 $Queue => undef
 $Default => 'none'
-$DefaultQueue => undef
 $Name => 'Template'
 </%ARGS>

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


More information about the Rt-commit mailing list