[otrs-cvs] otrs/Kernel/Modules AdminRoleUser.pm, 1.35, 1.36 AdminUserGroup.pm, 1.59, 1.60 AdminCustomerUserService.pm, 1.28, 1.29 AdminCustomerUserGroup.pm, 1.42, 1.43

"CVS commits notifications of OTRS.org" <[email protected]>
Newsgroups gmane.comp.otrs.cvs
Message-ID <[email protected]>
Comments:
Update of /home/cvs/otrs/Kernel/Modules
In directory lancelot:/tmp/cvs-serv25769/Kernel/Modules

Modified Files:
	AdminRoleUser.pm AdminUserGroup.pm AdminCustomerUserService.pm 
	AdminCustomerUserGroup.pm 
Log Message:
Fixed bug#8928 - Link in Groups and Roles screens shows agent login, not name.

Author: mb

Index: AdminRoleUser.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/Modules/AdminRoleUser.pm,v
retrieving revision 1.35
retrieving revision 1.36
diff -2 -u -d -r1.35 -r1.36
--- AdminRoleUser.pm	20 Nov 2012 14:43:54 -0000	1.35
+++ AdminRoleUser.pm	10 Dec 2012 15:02:00 -0000	1.36
@@ -62,5 +62,5 @@
             Data     => \%RoleData,
             ID       => $UserData{UserID},
-            Name     => $UserData{UserLogin},
+            Name     => "$UserData{UserFirstname} $UserData{UserLastname} ($UserData{UserLogin})",
             Type     => 'User',
         );

Author: mb

Index: AdminUserGroup.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/Modules/AdminUserGroup.pm,v
retrieving revision 1.59
retrieving revision 1.60
diff -2 -u -d -r1.59 -r1.60
--- AdminUserGroup.pm	20 Nov 2012 14:45:47 -0000	1.59
+++ AdminUserGroup.pm	10 Dec 2012 15:02:01 -0000	1.60
@@ -64,5 +64,5 @@
             Data => \%GroupData,
             ID   => $UserData{UserID},
-            Name => $UserData{UserLogin},
+            Name => "$UserData{UserFirstname} $UserData{UserLastname} ($UserData{UserLogin})",
             Type => 'User',
         );

Author: mb

Index: AdminCustomerUserService.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/Modules/AdminCustomerUserService.pm,v
retrieving revision 1.28
retrieving revision 1.29
diff -2 -u -d -r1.28 -r1.29
--- AdminCustomerUserService.pm	20 Nov 2012 14:36:34 -0000	1.28
+++ AdminCustomerUserService.pm	10 Dec 2012 15:02:01 -0000	1.29
@@ -77,10 +77,17 @@
         );
 
-        my $CustomerUserName
-            = $Param{CustomerUserLogin} eq '<DEFAULT>' ? q{} : $Param{CustomerUserLogin};
+        if ( $Param{CustomerUserLogin} eq '<DEFAULT>' ) {
+            $Param{Name} = q{};
+        }
+        else {
+            $Param{Name}
+                = $Self->{CustomerUserObject}
+                ->CustomerName( UserLogin => $Param{CustomerUserLogin} )
+                . " ($Param{CustomerUserLogin})";
+        }
 
         $Output .= $Self->_Change(
             ID                 => $Param{CustomerUserLogin},
-            Name               => $CustomerUserName,
+            Name               => $Param{Name},
             Data               => \%ServiceData,
             Selected           => \%ServiceMemberList,

Author: mb

Index: AdminCustomerUserGroup.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/Modules/AdminCustomerUserGroup.pm,v
retrieving revision 1.42
retrieving revision 1.43
diff -2 -u -d -r1.42 -r1.43
--- AdminCustomerUserGroup.pm	20 Nov 2012 14:36:26 -0000	1.42
+++ AdminCustomerUserGroup.pm	10 Dec 2012 15:02:01 -0000	1.43
@@ -69,4 +69,6 @@
         my $ID = $Self->{ParamObject}->GetParam( Param => 'ID' );
         my %UserData = $Self->{CustomerUserObject}->CustomerUserDataGet( User => $ID );
+        my $CustomerName
+            = $Self->{CustomerUserObject}->CustomerName( UserLogin => $UserData{UserLogin} );
 
         # get group data
@@ -88,8 +90,9 @@
             Data => \%GroupData,
             ID   => $UserData{UserID},
-            Name => $UserData{UserLogin},
+            Name => "$CustomerName ($UserData{UserLogin})",
             Type => 'CustomerUser',
         );
         $Output .= $Self->{LayoutObject}->Footer();
+
         return $Output;
     }
---------------------------------------------------------------------
OTRS mailing list: cvs-log - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/cvs-log
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.