[otrs-cvs] otrs/Kernel/Modules AdminSelectBox.pm,1.40,1.41

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

Modified Files:
	AdminSelectBox.pm 
Log Message:
Fixed bug#7689: SecureMode does not do what it should.

Author: mg

Index: AdminSelectBox.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/Modules/AdminSelectBox.pm,v
retrieving revision 1.40
retrieving revision 1.41
diff -2 -u -d -r1.40 -r1.41
--- AdminSelectBox.pm	20 Nov 2012 14:44:36 -0000	1.40
+++ AdminSelectBox.pm	28 Jan 2013 12:54:42 -0000	1.41
@@ -1,5 +1,5 @@
 # --
 # Kernel/Modules/AdminSelectBox.pm - provides a SelectBox for admins
-# Copyright (C) 2001-2012 OTRS AG, http://otrs.org/
+# Copyright (C) 2001-2013 OTRS AG, http://otrs.org/
 # --
 # $Id$
@@ -40,4 +40,9 @@
     my ( $Self, %Param ) = @_;
 
+    # secure mode message (don't allow this action until secure mode is enabled)
+    if ( !$Self->{ConfigObject}->Get('SecureMode') ) {
+        $Self->{LayoutObject}->SecureMode();
+    }
+
     $Param{ResultFormatStrg} = $Self->{LayoutObject}->BuildSelection(
         Name => 'ResultFormat',
---------------------------------------------------------------------
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.