[otrs-cvs] otrs/Kernel/Modules AdminProcessManagementPath.pm, 1.12, 1.13

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

Modified Files:
	AdminProcessManagementPath.pm 
Log Message:
Fixed bug#9160 - ProcessManagement: Path dialog looses data after editing transition actions.

Author: mn

Index: AdminProcessManagementPath.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/Modules/AdminProcessManagementPath.pm,v
retrieving revision 1.12
retrieving revision 1.13
diff -2 -u -d -r1.12 -r1.13
--- AdminProcessManagementPath.pm	5 Feb 2013 09:36:55 -0000	1.12
+++ AdminProcessManagementPath.pm	14 Feb 2013 08:36:23 -0000	1.13
@@ -169,10 +169,24 @@
                 = $Self->{ParamObject}->GetParam( Param => 'PopupRedirectEntityID' ) || '';
 
+            # when redirecting to the transition dialog, we need the new TransitionID
+            # because the ID was possibly changed in this dialog
+            # the value is stored in data-entity
+            # when redirecting to the transition action dialog, data-entity contains
+            # the transition action ID, but still we need the transition ID for going back
+
+            my $EntityID;
+
+            if ( $RedirectSubaction eq 'TransitionActionEdit' ) {
+                $EntityID = $TransferData->{TransitionEntityID};
+            }
+            elsif ( $RedirectSubaction eq 'TransitionEdit' ) {
+                $EntityID = $RedirectEntityID;
+            }
+
             $Self->_PushSessionScreen(
-                ID       => $TransferData->{ProcessEntityID},    # abuse!
-                EntityID => $RedirectEntityID
-                ,    # needed, because the transition was changed before the submit
+                ID              => $TransferData->{ProcessEntityID},    # abuse!
+                EntityID        => $EntityID,
                 StartActivityID => $GetParam->{StartActivityID},
-                Subaction       => 'PathEdit'                      # always use edit screen
+                Subaction       => 'PathEdit'                           # always use edit screen
             );
 
---------------------------------------------------------------------
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.