Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Kernel/Config/Files/XML/Ticket.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15568,4 +15568,13 @@ Thanks for your help!
</Hash>
</Value>
</Setting>

<Setting Name="Ticket::Frontend::AsteriskExplanation" Required="0" Valid="0">
<Description Translatable="1">Display a message explaining that the asterisk indicates mandatory fields.</Description>
<Navigation>Frontend::Base</Navigation>
<Value>
<Item ValueType="Checkbox">1</Item>
</Value>
</Setting>

</otobo_config>
7 changes: 7 additions & 0 deletions Kernel/Modules/AgentTicketActionCommon.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3215,6 +3215,13 @@ sub _Mask {

# End Widget Article

# explanatory message about asterisk
if ( $ConfigObject->Get('Ticket::Frontend::AsteriskExplanation') ) {
$LayoutObject->Block(
Name => 'AsteriskExplanation',
);
}

# get output back
return $LayoutObject->Output(
TemplateFile => $Self->{Action},
Expand Down
14 changes: 14 additions & 0 deletions Kernel/Modules/AgentTicketBounce.pm
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,13 @@ $Param{Signature}";
);
}

# explanatory message about asterisk
if ( $ConfigObject->Get('Ticket::Frontend::AsteriskExplanation') ) {
$LayoutObject->Block(
Name => 'AsteriskExplanation',
);
}

# print form ...
my $Output = $LayoutObject->Header(
Value => $Ticket{TicketNumber},
Expand Down Expand Up @@ -458,6 +465,13 @@ $Param{Signature}";
$Param{InformationFormat} = $Param{Body};
$Param{InformSenderChecked} = $Param{InformSender} ? 'checked ' : '';

# explanatory message about asterisk
if ( $ConfigObject->Get('Ticket::Frontend::AsteriskExplanation') ) {
$LayoutObject->Block(
Name => 'AsteriskExplanation',
);
}

my $Output = $LayoutObject->Header(
Type => 'Small',
BodyClass => 'Popup',
Expand Down
9 changes: 8 additions & 1 deletion Kernel/Modules/AgentTicketCompose.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1807,7 +1807,7 @@ sub Run {
}
}

# build new repsonse format based on template
# build new response format based on template
$Data{ResponseFormat} = $LayoutObject->Output(
Template => $ResponseFormat,
Data => { %Param, %DataHTML },
Expand Down Expand Up @@ -2377,6 +2377,13 @@ sub _Mask {
);
}

# explanatory message about asterisk
if ( $ConfigObject->Get('Ticket::Frontend::AsteriskExplanation') ) {
$LayoutObject->Block(
Name => 'AsteriskExplanation',
);
}

# create & return output
return $LayoutObject->Output(
TemplateFile => 'AgentTicketCompose',
Expand Down
8 changes: 8 additions & 0 deletions Kernel/Modules/AgentTicketCustomer.pm
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,14 @@ sub Form {
);
}

# explanatory message about asterisk
my $ConfigObject = $Kernel::OM->Get('Kernel::Config');
if ( $ConfigObject->Get('Ticket::Frontend::AsteriskExplanation') ) {
$LayoutObject->Block(
Name => 'AsteriskExplanation',
);
}

$Output .= $LayoutObject->Output(
TemplateFile => 'AgentTicketCustomer',
Data => \%Param
Expand Down
7 changes: 7 additions & 0 deletions Kernel/Modules/AgentTicketEmail.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3704,6 +3704,13 @@ sub _MaskEmailNew {
);
}

# explanatory message about asterisk
if ( $ConfigObject->Get('Ticket::Frontend::AsteriskExplanation') ) {
$LayoutObject->Block(
Name => 'AsteriskExplanation',
);
}

# get output back
return $LayoutObject->Output(
TemplateFile => 'AgentTicketEmail',
Expand Down
7 changes: 7 additions & 0 deletions Kernel/Modules/AgentTicketEmailOutbound.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2103,6 +2103,13 @@ sub _Mask {
);
}

# explanatory message about asterisk
if ( $ConfigObject->Get('Ticket::Frontend::AsteriskExplanation') ) {
$LayoutObject->Block(
Name => 'AsteriskExplanation',
);
}

# create & return output
return $LayoutObject->Output(
TemplateFile => 'AgentTicketEmailOutbound',
Expand Down
7 changes: 7 additions & 0 deletions Kernel/Modules/AgentTicketEmailResend.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1239,6 +1239,13 @@ sub _Mask {
push @{ $Param{AttachmentList} }, $Attachment;
}

# explanatory message about asterisk
if ( $ConfigObject->Get('Ticket::Frontend::AsteriskExplanation') ) {
$LayoutObject->Block(
Name => 'AsteriskExplanation',
);
}

# Create & return output.
return $LayoutObject->Output(
TemplateFile => 'AgentTicketEmailResend',
Expand Down
7 changes: 7 additions & 0 deletions Kernel/Modules/AgentTicketForward.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1991,6 +1991,13 @@ sub _Mask {
);
}

# explanatory message about asterisk
if ( $ConfigObject->Get('Ticket::Frontend::AsteriskExplanation') ) {
$LayoutObject->Block(
Name => 'AsteriskExplanation',
);
}

# create & return output
return $LayoutObject->Output(
TemplateFile => 'AgentTicketForward',
Expand Down
7 changes: 7 additions & 0 deletions Kernel/Modules/AgentTicketMerge.pm
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,13 @@ sub Run {
);
}

# explanatory message about asterisk
if ( $ConfigObject->Get('Ticket::Frontend::AsteriskExplanation') ) {
$LayoutObject->Block(
Name => 'AsteriskExplanation',
);
}

$Output .= $LayoutObject->Output(
TemplateFile => 'AgentTicketMerge',
Data => { %Param, %Ticket, %Article, }
Expand Down
7 changes: 7 additions & 0 deletions Kernel/Modules/AgentTicketMove.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1723,6 +1723,13 @@ sub AgentMove {
);
}

# explanatory message about asterisk
if ( $ConfigObject->Get('Ticket::Frontend::AsteriskExplanation') ) {
$LayoutObject->Block(
Name => 'AsteriskExplanation',
);
}

return $LayoutObject->Output(
TemplateFile => 'AgentTicketMove',
Data => {
Expand Down
7 changes: 7 additions & 0 deletions Kernel/Modules/AgentTicketPhone.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3326,6 +3326,13 @@ sub _MaskPhoneNew {
);
}

# explanatory message about asterisk
if ( $ConfigObject->Get('Ticket::Frontend::AsteriskExplanation') ) {
$LayoutObject->Block(
Name => 'AsteriskExplanation',
);
}

# get output back
return $LayoutObject->Output(
TemplateFile => 'AgentTicketPhone',
Expand Down
7 changes: 7 additions & 0 deletions Kernel/Modules/AgentTicketPhoneCommon.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1536,6 +1536,13 @@ sub _MaskPhone {
);
}

# explanatory message about asterisk
if ( $ConfigObject->Get('Ticket::Frontend::AsteriskExplanation') ) {
$LayoutObject->Block(
Name => 'AsteriskExplanation',
);
}

# create & return output
return $LayoutObject->Output(
TemplateFile => 'AgentTicketPhoneCommon',
Expand Down
Loading