X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main-contacts.html;h=317257b3be3aa2e59f78f9d4bd98118cea8b6f7f;hb=38f5c59a6a3b92881c0f60bc8dccc9acd0feef41;hp=3783cb9e93359a7261f9b4078980f14d8cc98376;hpb=ded6a5654efd56d2f271970c992133600e0223b1;p=freeside.git diff --git a/httemplate/edit/cust_main-contacts.html b/httemplate/edit/cust_main-contacts.html index 3783cb9e9..317257b3b 100644 --- a/httemplate/edit/cust_main-contacts.html +++ b/httemplate/edit/cust_main-contacts.html @@ -5,23 +5,26 @@ 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' => ' ', @@ -58,6 +61,13 @@ function checkPasswordValidation(fieldid) { 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'));