Skip to content

Commit

Permalink
Issue #2572: Replace hardcoded filter columns with sysconfig-defined …
Browse files Browse the repository at this point in the history
…ones.
  • Loading branch information
stefanhaerter committed Feb 6, 2024
1 parent e05b7c7 commit 76dd739
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Kernel/Modules/AgentDashboardCommon.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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 '';
Expand Down

0 comments on commit 76dd739

Please sign in to comment.