From 808c72ffcfc256efa5b15a98b5b4b0cf7655135e Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Wed, 31 Dec 2014 15:04:12 -0800 Subject: fix date fields in svc_circuit, related to #30380 --- httemplate/edit/process/svc_circuit.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'httemplate/edit/process') 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; +}; + -- cgit v1.2.1