X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Fprocess%2Fsvc_circuit.html;h=06cd7e70b963560be5c7c436cb74fce676d43f01;hp=d28f913296b1c0f9eaa7c7ca12cef775ef8d1a7c;hb=HEAD;hpb=8dd41f364aaba88969dfd0908feb22709025e7f6 diff --git a/httemplate/edit/process/svc_circuit.html b/httemplate/edit/process/svc_circuit.html index d28f91329..06cd7e70b 100644 --- a/httemplate/edit/process/svc_circuit.html +++ b/httemplate/edit/process/svc_circuit.html @@ -1,11 +1,23 @@ <& elements/svc_Common.html, table => 'svc_circuit', edit_ext => 'html', - redirect => popurl(3)."view/svc_circuit.html?", + redirect => popurl(3)."view/svc_circuit.cgi?", + precheck_callback => $precheck, &> <%init> die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Provision customer service'); #something else more specific? +my $precheck = sub { + my $cgi = shift; + foreach ('desired_due_date', 'due_date') { + if ( length $cgi->param($_) ) { + my $date = parse_datetime( $cgi->param($_) ); + $cgi->param($_, $date); + } + } + return; +}; +