From 3ddb1cacd69cdd8a34e6575e795778e365c53392 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20H=C3=A4rter?= Date: Thu, 12 Oct 2023 16:47:02 +0200 Subject: [PATCH] Issue #2572: Replace hardcoded filter columns with sysconfig-defined ones. --- Kernel/Modules/AgentDashboardCommon.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Kernel/Modules/AgentDashboardCommon.pm b/Kernel/Modules/AgentDashboardCommon.pm index 1c89dad00..e2aeb16b9 100644 --- a/Kernel/Modules/AgentDashboardCommon.pm +++ b/Kernel/Modules/AgentDashboardCommon.pm @@ -383,11 +383,11 @@ sub Run { my %GetColumnFilter; my %GetColumnFilterSelect; + # get default columns + my $DefaultColumns = $Self->{Config}->{DefaultColumns} || $ConfigObject->Get('DefaultOverviewColumns') || {}; + COLUMNNAME: - for my $ColumnName ( - qw(Owner Responsible State Queue Priority Type Lock Service SLA CustomerID CustomerUserID) - ) - { + for my $ColumnName ( keys $DefaultColumns->%* ) { my $FilterValue = $ParamObject->GetParam( Param => 'ColumnFilter' . $ColumnName . $Name ) || ''; next COLUMNNAME if $FilterValue eq '';