[Rt-commit] r13452 - in rt/3.8/trunk: .

sartak at bestpractical.com sartak at bestpractical.com
Fri Jun 20 12:52:45 EDT 2008


Author: sartak
Date: Fri Jun 20 12:52:44 2008
New Revision: 13452

Modified:
   rt/3.8/trunk/   (props changed)
   rt/3.8/trunk/lib/RT/SharedSetting.pm

Log:
 r62975 at dhcp32:  sartak | 2008-06-20 11:52:35 -0500
 Use RT::System-1 instead of falling back to RT::System


Modified: rt/3.8/trunk/lib/RT/SharedSetting.pm
==============================================================================
--- rt/3.8/trunk/lib/RT/SharedSetting.pm	(original)
+++ rt/3.8/trunk/lib/RT/SharedSetting.pm	Fri Jun 20 12:52:44 2008
@@ -350,16 +350,16 @@
     # allow passing in just an object to find its privacy string
     if (ref($obj_type)) {
         my $Object = $obj_type;
-        return $Object->isa('RT::User')   ? 'RT::User-'  . $Object->Id
-             : $Object->isa('RT::Group')  ? 'RT::Group-' . $Object->Id
-             : $Object->isa('RT::System') ? 'RT::System'
+        return $Object->isa('RT::User')   ? 'RT::User-'   . $Object->Id
+             : $Object->isa('RT::Group')  ? 'RT::Group-'  . $Object->Id
+             : $Object->isa('RT::System') ? 'RT::System-' . $Object->Id
              : undef;
     }
 
     return undef unless ($obj_type);  # undef workaround
     return $obj_type eq 'RT::User'   ? "$obj_type-$obj_id"
          : $obj_type eq 'RT::Group'  ? "$obj_type-$obj_id"
-         : $obj_type eq 'RT::System' ? $obj_type
+         : $obj_type eq 'RT::System' ? "$obj_type-$obj_id"
          : undef;
 }
 


More information about the Rt-commit mailing list