From: Kohei Yoshino Date: Fri, 9 Aug 2019 16:07:33 +0000 (-0400) Subject: Bug 1572731 - Updated Since Last Visit section of My Dashboard broken X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ea1fb92d96b4fb59560f08c56ab0473cbce8d29f;p=thirdparty%2Fbugzilla.git Bug 1572731 - Updated Since Last Visit section of My Dashboard broken --- 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); } }