X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FElements%2FShowUserVerbose;h=3276228bf4b1afabc8a0243315f2487ffecf6f0e;hp=9ff8cbbc8351db79b2c99a28ea6fcddc3f846a4a;hb=e9e0cf0989259b94d9758eceff448666a2e5a5cc;hpb=a6fe07e49e3fc12169e801b1ed6874c3a5bd8500 diff --git a/rt/share/html/Elements/ShowUserVerbose b/rt/share/html/Elements/ShowUserVerbose index 9ff8cbbc8..3276228bf 100644 --- a/rt/share/html/Elements/ShowUserVerbose +++ b/rt/share/html/Elements/ShowUserVerbose @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2014 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -54,8 +54,9 @@ 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; + $phrase = $User->RealName + if $User->RealName && ( !$address || lc $User->RealName ne lc $address ); + $comment = $User->Name if !$address || lc $User->Name ne lc $address; } else { $address = $Address; }