Skip to content

Commit

Permalink
Issue #2866: Added dynamic field widget df config to other places whe…
Browse files Browse the repository at this point in the history
…re it seemed to be needed.
  • Loading branch information
stefanhaerter committed Jan 24, 2024
1 parent 31608fa commit f70521c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
4 changes: 4 additions & 0 deletions Kernel/Output/HTML/TicketZoom/Agent/Base.pm
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ sub ArticleMetaFields {
# get dynamic field config for frontend module
my $DynamicFieldFilter = {
%{ $ConfigObject->Get("Ticket::Frontend::AgentTicketZoom")->{DynamicField} || {} },
%{
$ConfigObject->Get("Ticket::Frontend::AgentTicketZoom")->{DynamicFieldWidgetDynamicField}
|| {}
},
%{
$ConfigObject->Get("Ticket::Frontend::AgentTicketZoom")->{ProcessWidgetDynamicField}
|| {}
Expand Down
5 changes: 3 additions & 2 deletions Kernel/Output/HTML/TicketZoom/ContactWD.pm
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ sub Run {

# Get df config for zoom.
my $DynamicFieldFilter = {
%{ $ConfigObject->Get("Ticket::Frontend::AgentTicketZoom")->{DynamicField} || {} },
%{ $ConfigObject->Get("Ticket::Frontend::AgentTicketZoom")->{ProcessWidgetDynamicField} || {} },
%{ $ConfigObject->Get("Ticket::Frontend::AgentTicketZoom")->{DynamicField} || {} },
%{ $ConfigObject->Get("Ticket::Frontend::AgentTicketZoom")->{DynamicFieldWidgetDynamicField} || {} },
%{ $ConfigObject->Get("Ticket::Frontend::AgentTicketZoom")->{ProcessWidgetDynamicField} || {} },
};
my $DynamicField = $Kernel::OM->Get('Kernel::System::DynamicField')->DynamicFieldListGet(
Valid => 1,
Expand Down
6 changes: 0 additions & 6 deletions Kernel/Output/HTML/TicketZoom/Customer/Base.pm
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,6 @@ sub ArticleMetaFields {
# get dynamic field config for frontend module
my $DynamicFieldFilter = {
%{ $ConfigObject->Get("Ticket::Frontend::CustomerTicketZoom")->{DynamicField} || {} },

# TODO: Check if there are process dynamic fields for customer interface
# %{
# $ConfigObject->Get("Ticket::Frontend::CustomerTicketZoom")->{ProcessWidgetDynamicField}
# || {}
# },
};

# get the dynamic fields for article object
Expand Down
6 changes: 6 additions & 0 deletions Kernel/Output/HTML/TicketZoom/TicketInformation.pm
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,14 @@ sub Run {
);
}

# TODO order of dynamic field configs here differs from similar places - check why
# get dynamic field config for frontend module
my $DynamicFieldFilter = {
%{
$ConfigObject->Get("Ticket::Frontend::AgentTicketZoom")
->{DynamicFieldWidgetDynamicField}
|| {}
},
%{
$ConfigObject->Get("Ticket::Frontend::AgentTicketZoom")
->{ProcessWidgetDynamicField}
Expand Down

0 comments on commit f70521c

Please sign in to comment.