[freeside-commits] branch master updated. 9c2854f48fb79a5534bbb35c4b7c12b2e6acc0a4

Ivan ivan at 420.am
Fri Jun 3 18:26:08 PDT 2016


The branch, master has been updated
       via  9c2854f48fb79a5534bbb35c4b7c12b2e6acc0a4 (commit)
       via  f35818a77c0b825df553618f09c728c95cf3dc29 (commit)
      from  6008454279572ec1de69cf7c9c55a5f55afec4ed (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 9c2854f48fb79a5534bbb35c4b7c12b2e6acc0a4
Merge: f35818a 6008454
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Fri Jun 3 18:26:05 2016 -0700

    Merge branch 'master' of git.freeside.biz:/home/git/freeside


commit f35818a77c0b825df553618f09c728c95cf3dc29
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Fri Jun 3 18:25:59 2016 -0700

    add email to contact report

diff --git a/httemplate/search/contact.html b/httemplate/search/contact.html
index c3667df..44c864c 100644
--- a/httemplate/search/contact.html
+++ b/httemplate/search/contact.html
@@ -22,6 +22,12 @@ push @select, map "contact.$_", qw( first last title );
 my %hash = ();
 my $addl_from = '';
 
+my $email_sub = sub {
+  my $contact = shift;
+  my @contact_email = $contact->contact_email;
+  join(', ', map $_->emailaddress, @contact_email);
+};
+
 my $link; #for closure in this sub, we'll define it later
 my $contact_classname_sub = sub {
   my $contact = shift;
@@ -37,9 +43,9 @@ my $contact_classname_sub = sub {
   $X_contact->contact_classname;
 };
 
-my @header = ( 'First', 'Last', 'Title', 'Type' );
-my @fields = ( 'first', 'last', 'title', $contact_classname_sub );
-my @links = ( '', '', '', '', );
+my @header = ( 'First', 'Last', 'Title', 'Email', 'Type' );
+my @fields = ( 'first', 'last', 'title', $email_sub, $contact_classname_sub );
+my @links = ( '', '', '', '', '', );
 
 my $company_link = '';
 

-----------------------------------------------------------------------

Summary of changes:
 httemplate/search/contact.html |   12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)




More information about the freeside-commits mailing list