X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fprocess%2Fsvc_circuit.html;h=5cd2ec79e7232de17ff813e4f35b76cccc98a189;hb=ee0976f9722a87ed6166302dfdc687ed3b2b6a8e;hp=d28f913296b1c0f9eaa7c7ca12cef775ef8d1a7c;hpb=10614457fd7db63cbcc0bf9bfeebbbb99258eaa3;p=freeside.git diff --git a/httemplate/edit/process/svc_circuit.html b/httemplate/edit/process/svc_circuit.html index d28f91329..5cd2ec79e 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', + edit_ext => 'cgi', redirect => popurl(3)."view/svc_circuit.html?", + 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; +}; +