how to see the list of services in a customer interface

Dont create your support topics here! No new topics with questions allowed!

Moderator: crythias

Forum rules
Dont create your support topics here! No new topics with questions allowed!
Post Reply
alainigna
Znuny newbie
Posts: 1
Joined: 24 Mar 2012, 12:02
Znuny Version: 31111

how to see the list of services in a customer interface

Post by alainigna »

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
Post Reply