[otrs-cvs] ITSMChangeManagement/Kernel/System/Stats/Dynamic ITSMChangeManagement.pm, 1.13, 1.13.4.1

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

Modified Files:
      Tag: rel-3_1
	ITSMChangeManagement.pm 
Log Message:
Fixed bug #8634 - Statistics for ChangeStates not working.

Author: ub

Index: ITSMChangeManagement.pm
===================================================================
RCS file: /home/cvs/ITSMChangeManagement/Kernel/System/Stats/Dynamic/ITSMChangeManagement.pm,v
retrieving revision 1.13
retrieving revision 1.13.4.1
diff -2 -u -d -r1.13 -r1.13.4.1
--- ITSMChangeManagement.pm	28 Oct 2010 12:31:07 -0000	1.13
+++ ITSMChangeManagement.pm	1 Feb 2013 08:22:37 -0000	1.13.4.1
@@ -1,5 +1,5 @@
 # --
 # Kernel/System/Stats/Dynamic/ITSMChangeManagement.pm - all advice functions
-# Copyright (C) 2001-2010 OTRS AG, http://otrs.org/
+# Copyright (C) 2001-2013 OTRS AG, http://otrs.org/
 # --
 # $Id$
@@ -86,5 +86,5 @@
             UseAsValueSeries => 1,
             UseAsRestriction => 1,
-            Element          => 'StateIDs',
+            Element          => 'ChangeStateIDs',
             Block            => 'MultiSelectField',
             Values           => \%ChangeStateList,
@@ -140,6 +140,6 @@
     my ( $Self, %Param ) = @_;
 
-    # search tickets
-    return $Self->{ChangeObject}->ChangeSearch(
+    # search changes
+    my $Count = $Self->{ChangeObject}->ChangeSearch(
         UserID     => 1,
         Result     => 'COUNT',
@@ -148,4 +148,6 @@
         %Param,
     );
+
+    return $Count;
 }
 
@@ -164,5 +166,5 @@
             my $Values      = $Element->{SelectedValues};
 
-            if ( $ElementName eq 'StateIDs' ) {
+            if ( $ElementName eq 'ChangeStateIDs' ) {
                 my $StateList = $Self->{ChangeObject}->ChangePossibleStatesGet( UserID => 1 );
                 ID:
@@ -220,15 +222,15 @@
             my $Values      = $Element->{SelectedValues};
 
-            if ( $ElementName eq 'StateIDs' ) {
+            if ( $ElementName eq 'ChangeStateIDs' ) {
                 ID:
                 for my $ID ( @{$Values} ) {
                     next ID if !$ID;
 
-                    my $StateID = $Self->{ChangeObject}->ChangeStateLookup(
+                    my $ChangeStateID = $Self->{ChangeObject}->ChangeStateLookup(
                         ChangeState => $ID->{Content},
                         Cache       => 1,
                     );
-                    if ($StateID) {
-                        $ID->{Content} = $StateID;
+                    if ($ChangeStateID) {
+                        $ID->{Content} = $ChangeStateID;
                     }
                     else {
---------------------------------------------------------------------
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.