[Rt-commit] r14211 - rt/branches/3.999-DANGEROUS/lib/RT/Model

sunnavy at bestpractical.com sunnavy at bestpractical.com
Thu Jul 17 07:49:39 EDT 2008


Author: sunnavy
Date: Thu Jul 17 07:49:38 2008
New Revision: 14211

Modified:
   rt/branches/3.999-DANGEROUS/lib/RT/Model/Queue.pm

Log:


Modified: rt/branches/3.999-DANGEROUS/lib/RT/Model/Queue.pm
==============================================================================
--- rt/branches/3.999-DANGEROUS/lib/RT/Model/Queue.pm	(original)
+++ rt/branches/3.999-DANGEROUS/lib/RT/Model/Queue.pm	Thu Jul 17 07:49:38 2008
@@ -530,14 +530,25 @@
     return ( $status, _('Encrypting disabled') );
 }
 
-# {{{ sub templates
-
 =head2 templates
 
 Returns an RT::Model::TemplateCollection object of all of this queue's templates.
 
 =cut
 
+
+sub templates {
+    my $self = shift;
+
+    my $templates = RT::Model::TemplateCollection->new;
+
+    if ( $self->current_user_has_right('ShowTemplate') ) {
+        $templates->limit_to_queue( $self->id );
+    }
+
+    return ($templates);
+}
+
 sub subject_tag {
     my $self = shift;
     return RT->system->subject_tag($self);
@@ -576,27 +587,6 @@
     );
 }
 
-
-=cut
-
-sub templates {
-    my $self = shift;
-
-    my $templates = RT::Model::TemplateCollection->new;
-
-    if ( $self->current_user_has_right('ShowTemplate') ) {
-        $templates->limit_to_queue( $self->id );
-    }
-
-    return ($templates);
-}
-
-# }}}
-
-# {{{ Dealing with custom fields
-
-# {{{  CustomField
-
 =head2 custom_field name
 
 Load the queue-specific custom field named name


More information about the Rt-commit mailing list