[otrs-cvs] FAQ/Kernel/Modules AgentFAQExplorer.pm,1.17,1.17.2.1

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

Modified Files:
      Tag: rel-2_1
	AgentFAQExplorer.pm 
Log Message:
Fixed bug# 9005 - Redirect to wrong LastScreenOverview after inserting FAQ-Text into a TicketCompose Window.

Author: ub

Index: AgentFAQExplorer.pm
===================================================================
RCS file: /home/cvs/FAQ/Kernel/Modules/AgentFAQExplorer.pm,v
retrieving revision 1.17
retrieving revision 1.17.2.1
diff -2 -u -d -r1.17 -r1.17.2.1
--- AgentFAQExplorer.pm	8 May 2012 21:13:59 -0000	1.17
+++ AgentFAQExplorer.pm	19 Dec 2012 14:44:13 -0000	1.17.2.1
@@ -98,18 +98,22 @@
 
     # store last overview screen (for back menu action)
-    my $URL
-        = "Action=AgentFAQExplorer;SortBy=$Self->{SortBy}"
-        . ";CategoryID=$CategoryID;Nav=$Nav"
-        . ";OrderBy=$Self->{OrderBy};StartHit=$Self->{StartHit}";
-    $Self->{SessionObject}->UpdateSessionID(
-        SessionID => $Self->{SessionID},
-        Key       => 'LastScreenOverview',
-        Value     => $URL,
-    );
-    $Self->{SessionObject}->UpdateSessionID(
-        SessionID => $Self->{SessionID},
-        Key       => 'LastScreenView',
-        Value     => $URL,
-    );
+    # but only if the FAQ explorer is not shown as overlay
+    if ( !$Nav || $Nav ne 'None' ) {
+
+        my $URL
+            = "Action=AgentFAQExplorer;SortBy=$Self->{SortBy}"
+            . ";CategoryID=$CategoryID;Nav=$Nav"
+            . ";OrderBy=$Self->{OrderBy};StartHit=$Self->{StartHit}";
+        $Self->{SessionObject}->UpdateSessionID(
+            SessionID => $Self->{SessionID},
+            Key       => 'LastScreenOverview',
+            Value     => $URL,
+        );
+        $Self->{SessionObject}->UpdateSessionID(
+            SessionID => $Self->{SessionID},
+            Key       => 'LastScreenView',
+            Value     => $URL,
+        );
+    }
 
     # try to get the category data
---------------------------------------------------------------------
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.