Skip to content

Commit

Permalink
Fixed Bug - Empty block (horizontal line) dynamic field group process…
Browse files Browse the repository at this point in the history
… management. [#513](#513)
  • Loading branch information
dennykorsukewitz committed Jan 2, 2024
1 parent 6c6ae6a commit a6a3c3f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# 7.0.15 2024-??-??
- 2024-01-02 Fixed Bug - Empty block (horizontal line) dynamic field group process management. [#513](https://github.com/znuny/Znuny/issues/513)
- 2023-12-28 Fixed AdminACL: Text in MessageBox Notice should link to acl deployment.
- 2023-10-24 Kernel::System::MailQueue::Send now increases number of attempts before sending an email. This prevents the attempts not being increased if the process dies while trying to send an email.

Expand Down
21 changes: 17 additions & 4 deletions Kernel/Modules/AgentTicketZoom.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1649,20 +1649,33 @@ sub MaskAgentZoom {

# output dynamic fields registered for a group in the process widget
my @FieldsInAGroup;

GROUP:
for my $GroupName (
sort keys %{ $Self->{DisplaySettings}->{ProcessWidgetDynamicFieldGroups} }
)
{

$LayoutObject->Block(
Name => 'ProcessWidgetDynamicFieldGroups',
);

my $GroupFieldsString = $Self->{DisplaySettings}->{ProcessWidgetDynamicFieldGroups}->{$GroupName};

$GroupFieldsString =~ s{\s}{}xmsg;
my @GroupFields = split( ',', $GroupFieldsString );

my $ShowBlock = 0;
for my $FieldChecker (@FieldsWidget) {

my $DynamicFieldExists = grep { $_ eq $FieldChecker->{Name} } @GroupFields;
if ( !$ShowBlock && $DynamicFieldExists ) {
$ShowBlock = 1;
}
}

next GROUP if !$ShowBlock;

$LayoutObject->Block(
Name => 'ProcessWidgetDynamicFieldGroups',
);

if ( $#GroupFields + 1 ) {

my $ShowGroupTitle = 0;
Expand Down

0 comments on commit a6a3c3f

Please sign in to comment.