[otrs-cvs] ITSMConfigurationManagement/Kernel/Modules AgentITSMConfigItemEdit.pm, 1.32.2.2, 1.32.2.3

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

Modified Files:
      Tag: rel-3_1
	AgentITSMConfigItemEdit.pm 
Log Message:
Fixed error message for duplicate CIs to show CI-Numbers instead of IDs.

Author: ub

Index: AgentITSMConfigItemEdit.pm
===================================================================
RCS file: /home/cvs/ITSMConfigurationManagement/Kernel/Modules/AgentITSMConfigItemEdit.pm,v
retrieving revision 1.32.2.2
retrieving revision 1.32.2.3
diff -2 -u -d -r1.32.2.2 -r1.32.2.3
--- AgentITSMConfigItemEdit.pm	30 Nov 2012 19:47:44 -0000	1.32.2.2
+++ AgentITSMConfigItemEdit.pm	3 Dec 2012 12:29:02 -0000	1.32.2.3
@@ -453,10 +453,23 @@
     elsif ( IsArrayRefWithData($NameDuplicates) ) {
 
-        my $DuplicateString = join ', ', @{$NameDuplicates};
+        # build array with CI-Numbers
+        my @NameDuplicatesByCINumber;
+        for my $ConfigItemID ( @{$NameDuplicates} ) {
+
+            # lookup the CI number
+            my $CINumber = $Self->{ConfigItemObject}->ConfigItemLookup(
+                ConfigItemID => $ConfigItemID,
+            );
+
+            push @NameDuplicatesByCINumber, $CINumber;
+        }
+
+        my $DuplicateString = join ', ', @NameDuplicatesByCINumber;
 
         if ( $Self->{ConfigObject}->{Debug} > 0 ) {
             $Self->{LogObject}->Log(
                 Priority => 'debug',
-                Message  => "Rendering block for duplicates (IDs: $DuplicateString) error message",
+                Message =>
+                    "Rendering block for duplicates (CI-Numbers: $DuplicateString) error message",
             );
         }
---------------------------------------------------------------------
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.