[otrs-cvs] ITSMConfigurationManagement/Kernel/Modules AgentITSMConfigItem.pm, 1.19, 1.20
"CVS commits notifications of OTRS.org" <[email protected]>
| Newsgroups | gmane.comp.otrs.cvs |
|---|---|
| Message-ID | <[email protected]> |
Comments:
Update of /home/cvs/ITSMConfigurationManagement/Kernel/Modules
In directory lancelot:/tmp/cvs-serv9439/Kernel/Modules
Modified Files:
AgentITSMConfigItem.pm
Log Message:
Fixed bug #7782 - Selected class-filter in AgentITSMConfigItem isn't stored in session.
Author: ub
Index: AgentITSMConfigItem.pm
===================================================================
RCS file: /home/cvs/ITSMConfigurationManagement/Kernel/Modules/AgentITSMConfigItem.pm,v
retrieving revision 1.19
retrieving revision 1.20
diff -2 -u -d -r1.19 -r1.20
--- AgentITSMConfigItem.pm 22 Oct 2012 22:33:40 -0000 1.19
+++ AgentITSMConfigItem.pm 7 Feb 2013 08:41:02 -0000 1.20
@@ -1,5 +1,5 @@
# --
# Kernel/Modules/AgentITSMConfigItem.pm - the OTRS::ITSM config item module
-# Copyright (C) 2001-2012 OTRS AG, http://otrs.org/
+# Copyright (C) 2001-2013 OTRS AG, http://otrs.org/
# --
# $Id$
@@ -40,7 +40,10 @@
$Self->{Config} = $Self->{ConfigObject}->Get("ITSMConfigItem::Frontend::$Self->{Action}");
- # get default parameters
- $Self->{Filter} = $Self->{ParamObject}->GetParam( Param => 'Filter' ) || '';
- $Self->{View} = $Self->{ParamObject}->GetParam( Param => 'View' ) || '';
+ # get default parameters, try to get filter (ClassID) from session if not given as parameter
+ $Self->{Filter}
+ = $Self->{ParamObject}->GetParam( Param => 'Filter' )
+ || $Self->{AgentITSMConfigItemClassFilter}
+ || '';
+ $Self->{View} = $Self->{ParamObject}->GetParam( Param => 'View' ) || '';
return $Self;
@@ -60,4 +63,11 @@
);
+ # store filter (ClassID) in session
+ $Self->{SessionObject}->UpdateSessionID(
+ SessionID => $Self->{SessionID},
+ Key => 'AgentITSMConfigItemClassFilter',
+ Value => $Self->{Filter},
+ );
+
# get sorting parameters
my $SortBy = $Self->{ParamObject}->GetParam( Param => 'SortBy' )
---------------------------------------------------------------------
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