From 609e7cb967020e23f147f4e1b475fed97e37db30 Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Wed, 17 Apr 2019 11:13:03 -0400 Subject: [PATCH] RT# 75357 - v3 fix for creating contact rows in prospects --- httemplate/edit/prospect_main.html | 13 +++++++------ httemplate/elements/contact.html | 1 - 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/httemplate/edit/prospect_main.html b/httemplate/edit/prospect_main.html index 9340493b4..fefdb96c0 100644 --- a/httemplate/edit/prospect_main.html +++ b/httemplate/edit/prospect_main.html @@ -48,12 +48,13 @@ 'size' => 50, 'colspan' => 6, }, - { 'field' => 'contactnum', - 'type' => 'contact', - 'colspan' => 6, - 'o2m_table' => 'contact', - 'm2_label' => 'Contact', - 'm2_error_callback' => $m2_error_callback, + { 'field' => 'contactnum', + 'type' => 'contact', + 'colspan' => 6, + 'o2m_table' => 'contact', + 'm2_label' => 'Contact', + 'm2_error_callback' => $m2_error_callback, + 'include_opt_callback' => sub { 'for_prospect' => '1' }, }, { 'field' => 'locationnum', diff --git a/httemplate/elements/contact.html b/httemplate/elements/contact.html index 5cf8ddbd6..a9e1f23c9 100644 --- a/httemplate/elements/contact.html +++ b/httemplate/elements/contact.html @@ -145,7 +145,6 @@ tie my %label, 'Tie::IxHash', 'last' => 'Last name', 'title' => 'Title/Position', 'emailaddress' => 'Email', - 'selfservice_access' => 'Self-service' ; unless ($opt{'for_prospect'}) { -- 2.11.0