in my customization I've added four new colums in the DB Table "Customer_User" and i'm able to modify it from the Interface and show the new colums in all the places that i need.
But i'm unable to customize customize the small ticket view adding two of the new colums that i've added.
I Know that I've to modify the DTL file for show the new colums but I don't know how to modify the "TicketOverviewSmall.pm" for figure out how to reference the new fields.
Code: Select all
# customer info (customer name)
if ( $Param{Config}->{CustomerInfo} ) {
if ( $Article{CustomerUserID} ) {
$Article{CustomerName} = $Self->{CustomerUserObject}->CustomerName(
UserLogin => $Article{CustomerUserID},
);
}
}
EDIT For :
I've changed the CustomerInfo Section as below for use the CustomerUserDataGet function, but i'm still not enable to retrive the new colums.
Code: Select all
# customer info (customer name)
if ( $Param{Config}->{CustomerInfo} ) {
if ( $Article{CustomerUserID} ) {
$Article{CustomerUserID} = $Self->{CustomerUserObject}->[b]CustomerUserDataGet[/b](
UserLogin => $Article{CustomerUserID},
);
}
}
For example, if i need to show the UserCity, the mod in the .dtl file doesn't work:
TicketOverviewSmall.dtl
Code: Select all
<span title="$QData{"CustomerUserCity"}">$QData{"CustomerUserCity","15"}</span>