summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authormark <mark>2011-04-30 21:08:15 +0000
committermark <mark>2011-04-30 21:08:15 +0000
commit948efea2aa4d4eb05e3d8f6f5402b3bf825759bf (patch)
tree9733bffd621dbde693fee1cf0d2b827dc15aa8e4 /httemplate
parent88b2d48a63e815be9c36c8f611f453400f603c2b (diff)
svc_dish fixes, #11454
Diffstat (limited to 'httemplate')
-rw-r--r--httemplate/edit/process/svc_dish.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/httemplate/edit/process/svc_dish.html b/httemplate/edit/process/svc_dish.html
index 6c8851e77..f1c83a719 100644
--- a/httemplate/edit/process/svc_dish.html
+++ b/httemplate/edit/process/svc_dish.html
@@ -1,5 +1,6 @@
<% include( 'elements/svc_Common.html',
'table' => 'svc_dish',
+ 'value_callback' => $value_callback,
)
%>
<%init>
@@ -7,4 +8,8 @@
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Provision customer service'); #something else more specific?
+my $value_callback = sub {
+ my ($field, $value) = @_;
+ ($field eq 'installdate') ? parse_datetime($value) : $value;
+};
</%init>