[Rt-commit] r19930 - in rt/3.999/trunk: bin lib/RT/Action lib/RT/Interface share/html/Elements share/html/Ticket/Elements t/ticket t/web

sartak at bestpractical.com sartak at bestpractical.com
Sat Jun 6 05:50:23 EDT 2009


Author: sartak
Date: Sat Jun  6 05:50:23 2009
New Revision: 19930

Modified:
   rt/3.999/trunk/bin/rt-crontool
   rt/3.999/trunk/lib/RT/Action/UpdateTicket.pm
   rt/3.999/trunk/lib/RT/Interface/CLI.pm
   rt/3.999/trunk/sbin/rt-email-dashboards
   rt/3.999/trunk/share/html/Elements/SelectOwner
   rt/3.999/trunk/share/html/Ticket/Elements/Tabs
   rt/3.999/trunk/t/ticket/link_search.t
   rt/3.999/trunk/t/web/attachments.t

Log:
Use RT->nobody instead of $RT::nobody

Modified: rt/3.999/trunk/bin/rt-crontool
==============================================================================
--- rt/3.999/trunk/bin/rt-crontool	(original)
+++ rt/3.999/trunk/bin/rt-crontool	Sat Jun  6 05:50:23 2009
@@ -65,7 +65,7 @@
 # Load the config file
 RT::load_config();
 
-#Connect to the database and get RT->system_user and RT::nobody loaded
+#Connect to the database and get RT->system_user and RT->nobody loaded
 RT::init();
 
 #Get the current user all loaded

Modified: rt/3.999/trunk/lib/RT/Action/UpdateTicket.pm
==============================================================================
--- rt/3.999/trunk/lib/RT/Action/UpdateTicket.pm	(original)
+++ rt/3.999/trunk/lib/RT/Action/UpdateTicket.pm	Sat Jun  6 05:50:23 2009
@@ -77,7 +77,7 @@
         );
         while ( my $user = $Users->next() ) {
             next
-              if ( $user->id == $RT::nobody->id )
+              if ( $user->id == RT->nobody->id )
               ;    # skip nobody here, so we can make them first later
             $user_uniq_hash{ $user->id() } = $user;
         }
@@ -87,7 +87,7 @@
         map { { display => $_->name, value => $_->id } }
           sort { uc( $a->name ) cmp uc( $b->name ) } values %user_uniq_hash
     ];
-    unshift @$owners, { display => 'Nobody', value => $RT::nobody->id };
+    unshift @$owners, { display => 'Nobody', value => RT->nobody->id };
 
     return $owners;
 }

Modified: rt/3.999/trunk/lib/RT/Interface/CLI.pm
==============================================================================
--- rt/3.999/trunk/lib/RT/Interface/CLI.pm	(original)
+++ rt/3.999/trunk/lib/RT/Interface/CLI.pm	Sat Jun  6 05:50:23 2009
@@ -123,7 +123,7 @@
 =head2 get_current_user
 
   Figures out the uid of the current user and returns an RT::CurrentUser object
-loaded with that user.  if the current user isn't found, returns a copy of RT::nobody.
+loaded with that user.  if the current user isn't found, returns a copy of RT->nobody.
 
 =cut
 

Modified: rt/3.999/trunk/sbin/rt-email-dashboards
==============================================================================
--- rt/3.999/trunk/sbin/rt-email-dashboards	(original)
+++ rt/3.999/trunk/sbin/rt-email-dashboards	Sat Jun  6 05:50:23 2009
@@ -70,7 +70,7 @@
 # Load the config file
 RT::load_config();
 
-# Connect to the database and get RT->system_user and RT::nobody loaded
+# Connect to the database and get RT->system_user and RT->nobody loaded
 RT::init();
 
 $HTML::Mason::Commands::r = RT::Dashboard::FakeRequest->new;

Modified: rt/3.999/trunk/share/html/Elements/SelectOwner
==============================================================================
--- rt/3.999/trunk/share/html/Elements/SelectOwner	(original)
+++ rt/3.999/trunk/share/html/Elements/SelectOwner	Sat Jun  6 05:50:23 2009
@@ -101,18 +101,18 @@
     );
     while ( my $user = $Users->next() ) {
         next
-            if ( $user->id == $RT::nobody->id )
+            if ( $user->id == RT->nobody->id )
             ;    # skip nobody here, so we can make them first later
         $user_uniq_hash{ $user->id() } = $user;
     }
 }
-if ($default && $default != $RT::nobody->id && !$user_uniq_hash{$default}) {
+if ($default && $default != RT->nobody->id && !$user_uniq_hash{$default}) {
     $user_uniq_hash{$default} = RT::Model::User->new( current_user => Jifty->web->current_user );
     $user_uniq_hash{$default}->load($default);
 }
 
 my @users = sort { uc( $a->name ) cmp uc( $b->name ) } values %user_uniq_hash;
-unshift( @users, $RT::nobody );
+unshift( @users, RT->nobody );
 
 $m->callback(
     %ARGS,

Modified: rt/3.999/trunk/share/html/Ticket/Elements/Tabs
==============================================================================
--- rt/3.999/trunk/share/html/Ticket/Elements/Tabs	(original)
+++ rt/3.999/trunk/share/html/Ticket/Elements/Tabs	Sat Jun  6 05:50:23 2009
@@ -204,7 +204,7 @@
     }
 
     if ( $ticket->current_user_has_right('OwnTicket') ) {
-        if ( $ticket->owner_obj->id == $RT::nobody->id ) {
+        if ( $ticket->owner_obj->id == RT->nobody->id ) {
             $actions->{'B'} = {
                 path  => "Ticket/Display.html?action=take&id=" . $id,
                 title => _('Take'),

Modified: rt/3.999/trunk/t/ticket/link_search.t
==============================================================================
--- rt/3.999/trunk/t/ticket/link_search.t	(original)
+++ rt/3.999/trunk/t/ticket/link_search.t	Sat Jun  6 05:50:23 2009
@@ -6,7 +6,7 @@
 # Load the config file
 
 
-#Connect to the database and get RT->system_user and RT::nobody loaded
+#Connect to the database and get RT->system_user and RT->nobody loaded
 
 
 #Get the current user all loaded

Modified: rt/3.999/trunk/t/web/attachments.t
==============================================================================
--- rt/3.999/trunk/t/web/attachments.t	(original)
+++ rt/3.999/trunk/t/web/attachments.t	Sat Jun  6 05:50:23 2009
@@ -9,7 +9,7 @@
 
 my ($baseurl, $m) = RT::Test->started_ok;
 ok $m->login, 'logged in';
-my $queue = RT::Model::Queue->new(current_user => $RT::nobody);
+my $queue = RT::Model::Queue->new(current_user => RT->nobody);
 my $qid = $queue->load('General');
 ok( $qid, "Loaded General queue" );
 


More information about the Rt-commit mailing list