[freeside-commits] branch FREESIDE_4_BRANCH updated. df2d61c5308891cc5d4fe7df9cdaef623a16fce3

Ivan ivan at 420.am
Thu Aug 18 14:02:00 PDT 2016


The branch, FREESIDE_4_BRANCH has been updated
       via  df2d61c5308891cc5d4fe7df9cdaef623a16fce3 (commit)
      from  dfedd920db6c72b1aebc198af9d11387f416aa7b (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 df2d61c5308891cc5d4fe7df9cdaef623a16fce3
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Thu Aug 18 14:02:00 2016 -0700

    Fix Contact selection on prospect, from Fernando-Kiernan, github#54

diff --git a/FS/FS/prospect_main.pm b/FS/FS/prospect_main.pm
index 9472996..67e91cf 100644
--- a/FS/FS/prospect_main.pm
+++ b/FS/FS/prospect_main.pm
@@ -270,8 +270,11 @@ sub name {
   my $self = shift;
   return $self->company if $self->company;
 
-  my $contact = ($self->prospect_contact)[0]->contact; #first contact?  good enough for now
-  return $contact->line if $contact;
+  my $prospect_contact = ($self->prospect_contact)[0]; #first contact?  good enough for now
+  my $contact = $prospect_contact->contact if $prospect_contact;
+  return $contact->line if $prospect_contact && $contact;
+
+  #address?
 
   'Prospect #'. $self->prospectnum;
 }

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

Summary of changes:
 FS/FS/prospect_main.pm |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)




More information about the freeside-commits mailing list