how to see the list of services in a customer interface
/opt/otrs/Kernel/Modules/CustomerTicketMessage.pm
# services
if ( $Self->{ConfigObject}->Get('Ticket::Service') && $Self->{Config}->{Service} ) {
my %Service;
if ( $Param{QueueID} || $Param{TicketID} ) {
%Service = $Self->{TicketObject}->TicketServiceList(
%Param,
Action => $Self->{Action},
CustomerUserID => $Self->{UserID},
);
}
$Param{ServiceStrg} = $Self->{LayoutObject}->BuildSelection(
Data => \%Service,
Name => 'ServiceID',
SelectedID => $Param{ServiceID},
PossibleNone => 1,
TreeView => $TreeView,
Sort => 'TreeView',
Translation => 0,
Max => 200,
);
$Self->{LayoutObject}->Block(
Name => 'TicketService',
Data => \%Param,
);
in /opt/otrs/Kernel/Output/HTML/Standard/CustomerTicketMessage.dtl
<!-- dtl:block:TicketService -->
<div>
################################ Original line begin ####################################
# <label for="ServiceID">$Text{"Service"}:</label>
################################ Original line end #####################################
################################ Display Service as mandatory begin ##########################
<label for="ServiceID" class="Mandatory">
<span class="Marker">*</span>
$Text{"Service"}:
</label>
$Data{"ServiceStrg"}
<div id="ServiceIDError" class="TooltipErrorMessage" ><p>$Text{"This field is required."}</p></div>
<div id="ServiceIDServerError" class="TooltipErrorMessage NoJavaScriptMessage$QData{"ServiceInvalid"}" ><p>$Text{"This field is required."}</p></div>
<div class="Clear"></div>
################################ Display Service as mandatory end ########################
# $Data{"ServiceStrg"}
# <div class="Clear"></div>
</div>
<!-- dtl:block:TicketService -->
Thank you
alain
how to see the list of services in a customer interface
Moderator: crythias
Forum rules
Dont create your support topics here! No new topics with questions allowed!
Dont create your support topics here! No new topics with questions allowed!