Take a look at line 1730 and you'll see something like this:
Code:
$xtpl->assign("ASSIGNED_USER", $this->new_assigned_user_name); The basic syntax is that "ASSIGNED_USER" refers to the variable on your template (i.e. For example, {LEAD_PRIMARY_ADDRESS_CITY} from your modifications) and the section that begins with $this is the value that you want to assign to that variable.
So, something like this should do the trick for you:
Code:
$xtpl->assign("LEAD_PRIMARY_ADDRESS_CITY", $this->primary_address_city); You'll probably want an IF statement in there as well to cause it to only happen for Leads.
Bookmarks