summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'extensions')
-rw-r--r--extensions/InlineHistory/Extension.pm1
-rw-r--r--extensions/InlineHistory/template/en/default/hook/bug/comments-aftercomments.html.tmpl2
2 files changed, 3 insertions, 0 deletions
diff --git a/extensions/InlineHistory/Extension.pm b/extensions/InlineHistory/Extension.pm
index 4cff558c7..c48405eb9 100644
--- a/extensions/InlineHistory/Extension.pm
+++ b/extensions/InlineHistory/Extension.pm
@@ -106,6 +106,7 @@ sub template_before_process {
my $field_obj;
if ($change->{fieldname} =~ /^cf_/) {
$field_obj = Bugzilla::Field->new({ name => $change->{fieldname}, cache => 1 });
+ $change->{fieldtype} = $field_obj->type;
}
# identify buglist changes
diff --git a/extensions/InlineHistory/template/en/default/hook/bug/comments-aftercomments.html.tmpl b/extensions/InlineHistory/template/en/default/hook/bug/comments-aftercomments.html.tmpl
index d9871e43f..fb5d25225 100644
--- a/extensions/InlineHistory/template/en/default/hook/bug/comments-aftercomments.html.tmpl
+++ b/extensions/InlineHistory/template/en/default/hook/bug/comments-aftercomments.html.tmpl
@@ -157,6 +157,8 @@
change.fieldname == 'cc' ||
change.fieldname == 'flagtypes.name' %]
[% value FILTER email FILTER js %]
+ [% ELSIF change.fieldtype == constants.FIELD_TYPE_DATETIME %]
+ [% value FILTER time FILTER js %]
[% ELSE %]
[% value FILTER ih_short_value FILTER html FILTER js %]
[% END %]