[freeside-commits] branch master updated. e0b6fe25cca1e2ff566cc0765f6c9fa24ed66ba8

Ivan ivan at 420.am
Thu Aug 18 14:01:59 PDT 2016


The branch, master has been updated
       via  e0b6fe25cca1e2ff566cc0765f6c9fa24ed66ba8 (commit)
      from  7e9422a954e8249627c256b53080ee6afeeed913 (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 e0b6fe25cca1e2ff566cc0765f6c9fa24ed66ba8
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Thu Aug 18 14:01:58 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