diff options
author | Ivan Kohler <ivan@freeside.biz> | 2015-01-03 19:07:45 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2015-01-03 19:07:45 -0800 |
commit | a68a6b2c40470a95e4330c844d00389b9ac4c9a6 (patch) | |
tree | c92b7d46b5d082cf2597e93c489c01393847e500 /httemplate/edit/process | |
parent | 56458cb72e1958cb8d40faf014840277bd58c006 (diff) | |
parent | df0798e9f7d899d0eb74b24d16e6ba4f767313cd (diff) |
Merge branch 'FREESIDE_3_BRANCH' of git.freeside.biz:/home/git/freeside into FREESIDE_3_BRANCH
Diffstat (limited to 'httemplate/edit/process')
-rw-r--r-- | httemplate/edit/process/svc_circuit.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/httemplate/edit/process/svc_circuit.html b/httemplate/edit/process/svc_circuit.html index d28f91329..27f43db38 100644 --- a/httemplate/edit/process/svc_circuit.html +++ b/httemplate/edit/process/svc_circuit.html @@ -2,10 +2,22 @@ table => 'svc_circuit', edit_ext => 'html', 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; +}; + </%init> |