[otrs-cvs] otrs/Kernel/Modules AgentTicketProcess.pm,1.38,1.39

"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-serv15277/Kernel/Modules

Modified Files:
	AgentTicketProcess.pm 
Log Message:
 - 2013-02-11 Fixed bug#9117 - CustomerUpdate history entry added even if customer user has not been updated.

Author: cr

Index: AgentTicketProcess.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/Modules/AgentTicketProcess.pm,v
retrieving revision 1.38
retrieving revision 1.39
diff -2 -u -d -r1.38 -r1.39
--- AgentTicketProcess.pm	6 Feb 2013 15:42:23 -0000	1.38
+++ AgentTicketProcess.pm	11 Feb 2013 23:01:07 -0000	1.39
@@ -4204,4 +4204,19 @@
                 next DIALOGFIELD if $StoredFields{ $Self->{NameToID}{$CurrentField} };
 
+                # skip TicketCustomerSet() if there is no change in the customer
+                if (
+                    $Ticket{CustomerID} eq $TicketParam{CustomerID}
+                    && $Ticket{CustomerUserID} eq $TicketParam{CustomerUser}
+                    )
+                {
+
+                    # In this case we don't want to call any additional stores
+                    # on Customer, CustomerNo, CustomerID or CustomerUserID
+                    # so make sure both fields are set to "Stored" ;)
+                    $StoredFields{ $Self->{NameToID}{'CustomerID'} }     = 1;
+                    $StoredFields{ $Self->{NameToID}{'CustomerUserID'} } = 1;
+                    next DIALOGFIELD;
+                }
+
                 $Success = $Self->{TicketObject}->TicketCustomerSet(
                     No => $TicketParam{CustomerID},
---------------------------------------------------------------------
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.