I'm getting a little lost in the code as I'm a bit of novice at coding So I'm wondering if someone could point me in the right direction as to how I can make this change.
I know within AagentTicketOverviewSmall.dtl I need to change:
Code: Select all
<div title="$QData{"CustomerName"}">$QData{"CustomerName","15"}</div>
Code: Select all
<div title="$QData{"City"}">$QData{"City","15"}</div>
I assumed at first that City would be available as the customer name was getting pulled from somewhere but the above change didn't work so I either messed up the parameter City or it wasn't being passed to the template. After looking at TicketOverviewSmall.pm it seems like I need to make a change there as well in order to pass the value I want.
I assume I need to change to fit my needs for City (or comment out and add my code for City):
Code: Select all
# customer info (customer name)
if ( $Param{Config}->{CustomerInfo} ) {
if ( $Article{CustomerUserID} ) {
$Article{CustomerName} = $Self->{CustomerUserObject}->CustomerName(
UserLogin => $Article{CustomerUserID},
);
}
}