RT# 75357 - v3 fix for creating contact rows in prospects
authorChristopher Burger <burgerc@freeside.biz>
Wed, 17 Apr 2019 15:13:03 +0000 (11:13 -0400)
committerChristopher Burger <burgerc@freeside.biz>
Wed, 17 Apr 2019 15:13:03 +0000 (11:13 -0400)
httemplate/edit/prospect_main.html
httemplate/elements/contact.html

index 9340493..fefdb96 100644 (file)
          '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',
index 5cf8ddb..a9e1f23 100644 (file)
@@ -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'}) {