X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main-contacts.html;h=317257b3be3aa2e59f78f9d4bd98118cea8b6f7f;hp=76929a7c9bb16f6214a32985e35001ce5f7df379;hb=3f2a7b01b59902faed5767d81e2959e131bdbdfd;hpb=6edcac3fb4f343273195460f03a5e3c01feecb2a diff --git a/httemplate/edit/cust_main-contacts.html b/httemplate/edit/cust_main-contacts.html index 76929a7c9..317257b3b 100644 --- a/httemplate/edit/cust_main-contacts.html +++ b/httemplate/edit/cust_main-contacts.html @@ -4,11 +4,27 @@ Hmm, this is now entirely redundant with edit/cust_main/contacts_new.html, and this one isn't being maintained well. :/ + + + +<& '/elements/validate_password_js.html', &> + <& elements/edit.html, 'name_singular' => 'customer contacts', #yes, we're editing all of them 'table' => 'cust_main', 'post_url' => popurl(1). 'process/cust_main-contacts.html', 'no_pkey_display' => 1, + 'submit_id' => 'submit', 'labels' => { 'contactnum' => ' ', #'Contact', #'locationnum' => ' ', @@ -45,6 +61,13 @@ this one isn't being maintained well. :/ my $curuser = $FS::CurrentUser::CurrentUser; my $conf = new FS::Conf; +if ( $cgi->param('redirect') ) { + my $session = $cgi->param('redirect'); + my $pref = $curuser->option("redirect$session"); + die "unknown redirect session $session\n" unless length($pref); + $cgi = new CGI($pref); +} + my $custnum; if ( $cgi->param('error') ) { $custnum = scalar($cgi->param('custnum'));