[Rt-commit] r14334 - in rt/branches/3.999-DANGEROUS: share/html/Elements

sunnavy at bestpractical.com sunnavy at bestpractical.com
Mon Jul 21 11:36:46 EDT 2008


Author: sunnavy
Date: Mon Jul 21 11:36:45 2008
New Revision: 14334

Modified:
   rt/branches/3.999-DANGEROUS/   (props changed)
   rt/branches/3.999-DANGEROUS/share/html/Elements/ShowUser

Log:
 r14786 at sunnavys-mb:  sunnavy | 2008-07-21 23:36:24 +0800
 Usernameformat => UsernameFormat, and we orght to call /Elements/ShowUserFoooo with real RT::Module::User object, since RT::CurrentUser is not based on RT::User as 3.8


Modified: rt/branches/3.999-DANGEROUS/share/html/Elements/ShowUser
==============================================================================
--- rt/branches/3.999-DANGEROUS/share/html/Elements/ShowUser	(original)
+++ rt/branches/3.999-DANGEROUS/share/html/Elements/ShowUser	Mon Jul 21 11:36:45 2008
@@ -57,6 +57,10 @@
         return;
     }
 }
+elsif ( $User->isa('RT::CurrentUser') ) {
+    $User = $User->user_object;
+}
+
 if ( $style eq 'concise' ) {
     $m->comp( '/Elements/ShowUserConcise', User => $User );
 }
@@ -65,5 +69,5 @@
 <%ARGS>
 $User => undef
 $Address => undef
-$style => RT->config->get('Usernameformat', Jifty->web->current_user)
+$style => RT->config->get('UsernameFormat', Jifty->web->current_user)
 </%ARGS>


More information about the Rt-commit mailing list