summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Fearn <jfearn@redhat.com>2021-04-15 16:43:27 +1000
committerJeff Fearn <jfearn@redhat.com>2021-04-15 16:43:27 +1000
commit7846655f238a18bf34c0f92e5ea05f7ede4580f7 (patch)
tree57eeb4bb7ab47238d8477a3342db187d51f3a61b
parentBug 1942247 - Redirection through SSO login loses bugzilla URL parameters aft... (diff)
downloadbugzilla-7846655f238a18bf34c0f92e5ea05f7ede4580f7.tar.gz
bugzilla-7846655f238a18bf34c0f92e5ea05f7ede4580f7.tar.bz2
bugzilla-7846655f238a18bf34c0f92e5ea05f7ede4580f7.zip
Bug 1944984 - Implement "Last changed from" condition for an advanced/custom search
Correct name from `lastchangedto` to `lastchangedfrom`; Change-Id: Ibd1f4a8a65195cd7ea13753bdc95ef75333d2f18
-rw-r--r--Bugzilla/Search.pm4
-rw-r--r--extensions/RedHat/template/en/default/hook/global/field-descs-end.none.tmpl2
-rw-r--r--template/en/default/list/list.html.tmpl2
-rw-r--r--template/en/default/search/boolean-charts.html.tmpl2
4 files changed, 5 insertions, 5 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm
index 258f4dde3..27f4cd26f 100644
--- a/Bugzilla/Search.pm
+++ b/Bugzilla/Search.pm
@@ -183,7 +183,7 @@ use constant OPERATORS => {
},
## REDHAT EXTENSION END 1315421
## REDHAT EXTENSION BEGIN 1944984
- lastchangedto => \&_changedfrom_changedto,
+ lastchangedfrom => \&_changedfrom_changedto,
## REDHAT EXTENSION END 1944984
};
@@ -3546,7 +3546,7 @@ sub _changedfrom_changedto {
};
## REDHAT EXTENSION BEGIN 1944984
- if ($operator eq 'lastchangedto') {
+ if ($operator eq 'lastchangedfrom') {
my $extra = <<EOS;
NOT EXISTS(
SELECT *
diff --git a/extensions/RedHat/template/en/default/hook/global/field-descs-end.none.tmpl b/extensions/RedHat/template/en/default/hook/global/field-descs-end.none.tmpl
index 1e37229c5..f8babbd71 100644
--- a/extensions/RedHat/template/en/default/hook/global/field-descs-end.none.tmpl
+++ b/extensions/RedHat/template/en/default/hook/global/field-descs-end.none.tmpl
@@ -24,5 +24,5 @@
[%## REDHAT EXTENSION END 1261259 %]
[%## REDHAT EXTENSION START 1944984 %]
-[% search_descs.lastchangedto = "Last changed to" %]
+[% search_descs.lastchangedfrom = "Last changed from" %]
[%## REDHAT EXTENSION END 1944984 %]
diff --git a/template/en/default/list/list.html.tmpl b/template/en/default/list/list.html.tmpl
index 6626fda22..1768b08bd 100644
--- a/template/en/default/list/list.html.tmpl
+++ b/template/en/default/list/list.html.tmpl
@@ -117,7 +117,7 @@
'greaterthan', 'greaterthaneq', 'changedbefore', 'changedafter',
'changedfrom', 'changedto', 'changedby', 'notsubstring', 'nowords',
'nowordssubstr', 'notmatches', 'isempty', 'isnotempty'
- ,'anddependson', 'andblocked', 'notdependson', 'notblocked', 'lastchangedto'
+ ,'anddependson', 'andblocked', 'notdependson', 'notblocked', 'lastchangedfrom'
] %]
<a id="search_description_controller" class="bz_default_hidden"
href="javascript:TUI_toggle_class('search_description')">Hide Search Description</a>
diff --git a/template/en/default/search/boolean-charts.html.tmpl b/template/en/default/search/boolean-charts.html.tmpl
index f5ae5dcb3..504e9709c 100644
--- a/template/en/default/search/boolean-charts.html.tmpl
+++ b/template/en/default/search/boolean-charts.html.tmpl
@@ -36,7 +36,7 @@
"isempty",
"isnotempty",
"listofbugs",
- "lastchangedto",
+ "lastchangedfrom",
] %]
<div class="bz_section_title [% IF default.custom_search %] bz_search_has_options[% END %]" id="custom_search_filter">