d902dee09868d1c1a1d28909917821b01ee53aa6
[freeside.git] / httemplate / edit / process / cust_main-contacts.html
1 <% include('elements/process.html',
2      'table'          => 'cust_main',
3      'error_redirect' => popurl(3). 'edit/cust_main-contacts.html?',
4      'agent_virt'     => 1,
5      'skip_process'   => 1, #we don't want to make any changes to cust_main
6      'process_o2m' => {
7        'table'  => 'contact',
8        'fields' => \@contact_fields,
9      },
10      'redirect' => popurl(3). 'view/cust_main.cgi?',
11    )
12 %>
13 <%init>
14
15 my @contact_fields = qw(
16   classnum first last title comment emailaddress selfservice_access
17 );
18 foreach my $phone_type ( qsearch({table=>'phone_type', order_by=>'weight'}) ) {
19   push @contact_fields, 'phonetypenum'.$phone_type->phonetypenum;
20 }
21
22 </%init>