READ the sticky threads BEFORE you make your modification.You'll have to very that this actually works in all cases, when customers trigger a notice, when operators trigger a notice, new tickets, replies, etc.
In
TTXTicket.pm, in the
opernotify subroutine, look for the section full of macros. They will start with "$macros{"
Insert the following in there someplace, let's say between the "COMPANYNAME" and "UEMAIL" lines....
my $oper;
if ($cfg->get('_USER') ne undef) {
$oper = $cfg->get('_USER');
} elsif ($ticket->{oper} ne undef) {
$oper = TTXUser->new($ticket->{oper});
}
if ($oper ne undef) {
$macros{OPERATORNAME} = $oper->{fname}.' '.$oper->{lname};
}