From ea1fb92d96b4fb59560f08c56ab0473cbce8d29f Mon Sep 17 00:00:00 2001 From: Kohei Yoshino Date: Fri, 9 Aug 2019 12:07:33 -0400 Subject: [PATCH] Bug 1572731 - Updated Since Last Visit section of My Dashboard broken --- Bugzilla/Search.pm | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index 19b18b30a..a02282615 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -2277,14 +2277,12 @@ sub _last_visit_datetime { my ($self, $args) = @_; my $value = $args->{value}; - $self->_datetime_translate($args); - if ($value eq $args->{value}) { - - # Failed to translate a datetime. let's try the pronoun expando. - if ($value eq '%last_changed%') { - $self->_add_extra_column('changeddate'); - $args->{value} = $args->{quoted} = 'bugs.delta_ts'; - } + if ($value eq '%last_changed%') { + $self->_add_extra_column('changeddate'); + $args->{value} = $args->{quoted} = 'bugs.delta_ts'; + } + else { + $self->_datetime_translate($args); } } -- 2.47.3