hello.

Please find below my first otrs code that show Ticket Owner name (and
other ticket owner infos) insdead of pure Owner (login).


I just added some code into:
Kernel/Modules/CustomerTicketOverView.pm
and into *dtl file CustomerStatusView.dtl


#Kernel/Modules/CustomerTicketOverView.pm
# at begining... use User package
use Kernel::System::User;
[..]

#sub new(),  for get UserObject
$Self->{UserObject} = Kernel::System::User->new(%Param);
[..]

#sub ShowTicketStatus(), pub additional parametres to dtl file
# get Ticket data for the ticket
my %TicketData = $Self->{TicketObject}->TicketGet(TicketID => $TicketID);
# get Ticket Owner info...
my %TicketOwnerData =  $Self->{UserObject}->GetUserData(User =>
$TicketData{Owner});

# pass on new parameters (OwnerFirstName and OwnerLastName)
# into CustomerStatusView.dtl, see dev.otrs.org, Kenel::System::User for
# addtional params
$Param{OwnerFirstName} = $TicketOwnerData{UserFirstname};
$Param{OwnerLastName} = $TicketOwnerData{UserLastname};
[..]


and inside  CustomerStatusView.dtl file, just add/change line with
$Data{"Owner"} to $Data{"OwnerLastName"}, etc...

Any comments walcome...
best regards,
tomasz

--
tomasz zaborowski
_______________________________________________
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev

Reply via email to