X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-select-contact.html;h=d6bc67f3616788c89e170629299b6bc904cb70ea;hb=1ab3d1021689645456ef4073066c60043ea1633b;hp=579117808b1521b8f2d216e5bff55820a0d4dc47;hpb=2e761a72c380dc9d7320ccd822cfe8476534b369;p=freeside.git diff --git a/httemplate/elements/tr-select-contact.html b/httemplate/elements/tr-select-contact.html index 579117808..d6bc67f36 100644 --- a/httemplate/elements/tr-select-contact.html +++ b/httemplate/elements/tr-select-contact.html @@ -162,7 +162,7 @@ if ( $contactnum && $contactnum > 0 ) { if ( $contactnum == -1 ) { $contact->$_( $cgi->param($_) ) foreach @contact_fields; #XXX } elsif ( $cust_pkg && $cust_pkg->contactnum ) { - my $pkg_contact = $cust_pkg->contact; + my $pkg_contact = $cust_pkg->contact_obj; $contact->$_( $pkg_contact->$_ ) foreach @contact_fields; #XXX why are we making a new one gagain?? $opt{'empty_label'} ||= 'package contact: '.$pkg_contact->line; } elsif ( $cust_main ) {