[Rt-commit] rt branch, master, updated. rt-3.9.7-1047-gb9800dd

Alex Vandiver alexmv at bestpractical.com
Wed Dec 29 01:03:12 EST 2010


The branch, master has been updated
       via  b9800dd7220ac1fd154025c1cd1aade1de800aaf (commit)
      from  567ef345957763a27979a67df7c357a31194881a (commit)

Summary of changes:
 share/html/Elements/ShowUserVerbose |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

- Log -----------------------------------------------------------------
commit b9800dd7220ac1fd154025c1cd1aade1de800aaf
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Tue Dec 28 20:13:28 2010 -0500

    Actually display something when only passed a $Address

diff --git a/share/html/Elements/ShowUserVerbose b/share/html/Elements/ShowUserVerbose
index e867c7c..80d9918 100644
--- a/share/html/Elements/ShowUserVerbose
+++ b/share/html/Elements/ShowUserVerbose
@@ -50,18 +50,20 @@
 <%INIT>
 my $phrase = '';
 my $address = '';
-my  $comment = '';
+my $comment = '';
 
 if ($User) {
     $address = $User->EmailAddress;
     $phrase  = $User->RealName if $User->RealName && lc $User->RealName ne lc $address;
     $comment = $User->Name if lc $User->Name ne lc $address;
+} else {
+    $address = $Address;
 }
 
 my $display = ($phrase || $comment || '' ) . ($address ?  ' <'.$address.'>' : '');
 
-   $display = $m->interp->apply_escapes( $display, 'h' )
-        unless $ARGS{'NoEscape'};
+$display = $m->interp->apply_escapes( $display, 'h' )
+    unless $ARGS{'NoEscape'};
 </%INIT>
 <%ARGS>
 $User => undef

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


More information about the Rt-commit mailing list