From 6930dc568d8169b3f2f9eb7dd25d798cc1900008 Mon Sep 17 00:00:00 2001 From: Marius Kittler Date: Fri, 21 Sep 2018 14:18:14 +0200 Subject: [PATCH] Fix 'last_match' param of AJAX route for needle table * See https://progress.opensuse.org/issues/41399 * Bug was introduced in 2a50aa7c9f42e72bd95f89378fcb5c745f76a22f --- lib/OpenQA/WebAPI/Controller/Admin/Needle.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/OpenQA/WebAPI/Controller/Admin/Needle.pm b/lib/OpenQA/WebAPI/Controller/Admin/Needle.pm index 2ee44b15384..5a81e7a7a1a 100644 --- a/lib/OpenQA/WebAPI/Controller/Admin/Needle.pm +++ b/lib/OpenQA/WebAPI/Controller/Admin/Needle.pm @@ -54,11 +54,11 @@ sub ajax { push(@filter_conds, {filename => {-like => '%' . $search_value . '%'}}) if $search_value; my $seen_query = $self->param('last_seen'); if ($seen_query && $seen_query ne 'none') { - push(@filter_conds, {'last_seen_time' => _translate_cond($self->param('last_seen'))}); + push(@filter_conds, {last_seen_time => _translate_cond($seen_query)}); } my $match_query = $self->param('last_match'); if ($match_query && $match_query ne 'none') { - push(@filter_conds, {'last_matched_time' => _translate_cond($self->param('last_matched'))}); + push(@filter_conds, {last_matched_time => _translate_cond($match_query)}); } OpenQA::ServerSideDataTable::render_response(