diff options
author | Alex Brelsfoard <alex@freeside.biz> | 2015-02-10 00:11:07 -0500 |
---|---|---|
committer | Alex Brelsfoard <alex@freeside.biz> | 2015-02-10 00:11:07 -0500 |
commit | ec7e8155fce544f19f2b6734476ed6db8c200aa9 (patch) | |
tree | 8b336b67d075006b6fcbcaa110307cc2413f5554 /httemplate/edit/cust_main.cgi | |
parent | d422d2530bda9de3af830f1e1ab1084061b486f5 (diff) | |
parent | 0238fd7aa7a92887970507346ac7e6ad8ed5492c (diff) |
Merge branch 'master' of git.freeside.biz:/home/git/freeside
Diffstat (limited to 'httemplate/edit/cust_main.cgi')
-rwxr-xr-x | httemplate/edit/cust_main.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi index 353ae1799..da87bfca7 100755 --- a/httemplate/edit/cust_main.cgi +++ b/httemplate/edit/cust_main.cgi @@ -325,8 +325,8 @@ if ( $cgi->param('error') ) { $cust_main->company( $prospect_main->company ); #first contact? -> name - my @contacts = $prospect_main->contact; - my $contact = $contacts[0]; + my @prospect_contacts = $prospect_main->prospect_contact; + my $contact = $prospect_contacts[0]->contact; $cust_main->first( $contact->first ); $cust_main->set( 'last', $contact->get('last') ); #contact phone numbers? |