summaryrefslogtreecommitdiff
path: root/httemplate/edit/process
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2015-01-03 18:35:01 -0800
committerIvan Kohler <ivan@freeside.biz>2015-01-03 18:35:01 -0800
commit859036a7e64506106a507f12e7196efeb40733a1 (patch)
tree42c8160568a3f9cca6d6656c6cfc8c40af8dbc76 /httemplate/edit/process
parenta7d9192c0b3b7dc5c4aa5bd889db93379dfeac3b (diff)
parent225cb914aa74111bb9b539075b7e065d41eb9aec (diff)
Merge branch 'master' of git.freeside.biz:/home/git/freeside
Diffstat (limited to 'httemplate/edit/process')
-rw-r--r--httemplate/edit/process/svc_circuit.html12
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>