diff options
author | Ivan Kohler <ivan@freeside.biz> | 2015-02-03 07:14:45 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2015-02-03 07:14:45 -0800 |
commit | 167dbdad01e2c1b62fd9be43cc05212e8c874a02 (patch) | |
tree | 0d49c9ba03d64560f21b02a20d32d6005a790ced /httemplate/misc | |
parent | 475ae93877f1d834941f7b9adcc35ee84c5c22fa (diff) |
contacts can be shared among customers / "duplicate contact emails", RT#27943
Diffstat (limited to 'httemplate/misc')
-rw-r--r-- | httemplate/misc/email-quotation.html | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/httemplate/misc/email-quotation.html b/httemplate/misc/email-quotation.html index b93b80bb7..64e3691b5 100644 --- a/httemplate/misc/email-quotation.html +++ b/httemplate/misc/email-quotation.html @@ -16,9 +16,11 @@ % } % } -% my @contact = $quotation->custnum ? $quotation->cust_main->cust_contact -% : $quotation->prospect_main->contact; -% foreach my $contact ( @contact ) { +% my @X_contact = $quotation->custnum +% ? $quotation->cust_main->cust_contact +% : $quotation->prospect_main->prospect_contact; +% foreach my $X_contact ( @X_contact ) { +% my $contact = $X_contact->contact; % foreach my $contact_email ( $contact->contact_email ) { % $emails++; <& .emailrow, $contact_email->emailaddress, $contact->firstlast &> |