Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
c0f18c9d
Commit
c0f18c9d
authored
Feb 07, 2010
by
Rémi Zara
Committed by
Max Kanat-Alexander
Feb 07, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 58731: Make the keywords regexp boolean charts work
r=mkanat, a=mkanat
parent
7f85d8e5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
+21
-2
Search.pm
Bugzilla/Search.pm
+20
-1
form.html.tmpl
template/en/default/search/form.html.tmpl
+1
-1
No files found.
Bugzilla/Search.pm
View file @
c0f18c9d
...
...
@@ -28,6 +28,7 @@
# Joel Peshkin <bugreport@peshkin.net>
# Lance Larsh <lance.larsh@oracle.com>
# Jesse Clark <jjclark1982@gmail.com>
# Rémi Zara <remi_zara@mac.com>
use
strict
;
...
...
@@ -636,6 +637,7 @@ sub init {
"^component,(?!changed)"
=>
\&
_component_nonchanged
,
"^product,(?!changed)"
=>
\&
_product_nonchanged
,
"^classification,(?!changed)"
=>
\&
_classification_nonchanged
,
"^keywords,(?:equals|notequals|anyexact|anyword|allwords|nowords)"
=>
\&
_keywords_exact
,
"^keywords,(?!changed)"
=>
\&
_keywords_nonchanged
,
"^dependson,(?!changed)"
=>
\&
_dependson_nonchanged
,
"^blocked,(?!changed)"
=>
\&
_blocked_nonchanged
,
...
...
@@ -1865,7 +1867,7 @@ sub _classification_nonchanged {
$$term
);
}
sub
_keywords_
nonchanged
{
sub
_keywords_
exact
{
my
$self
=
shift
;
my
%
func_args
=
@_
;
my
(
$chartid
,
$v
,
$ff
,
$f
,
$t
,
$term
,
$supptables
)
=
...
...
@@ -1904,6 +1906,23 @@ sub _keywords_nonchanged {
}
}
sub
_keywords_nonchanged
{
my
$self
=
shift
;
my
%
func_args
=
@_
;
my
(
$chartid
,
$v
,
$ff
,
$f
,
$t
,
$term
,
$supptables
)
=
@func_args
{
qw(chartid v ff f t term supptables)
};
my
$k_table
=
"keywords_$$chartid"
;
my
$kd_table
=
"keyworddefs_$$chartid"
;
push
(
@$supptables
,
"LEFT JOIN keywords AS $k_table "
.
"ON $k_table.bug_id = bugs.bug_id"
);
push
(
@$supptables
,
"LEFT JOIN keyworddefs AS $kd_table "
.
"ON $kd_table.id = $k_table.keywordid"
);
$$f
=
"$kd_table.name"
;
}
sub
_dependson_nonchanged
{
my
$self
=
shift
;
my
%
func_args
=
@_
;
...
...
template/en/default/search/form.html.tmpl
View file @
c0f18c9d
...
...
@@ -301,7 +301,7 @@ function doOnSelectProduct(selectmode) {
<td>
[% INCLUDE "search/type-select.html.tmpl"
name = "keywords_type",
types = ['allwords', 'anywords', 'nowords'
],
types = ['allwords', 'anywords', 'nowords'
, 'regexp', 'notregexp'],
selected = default.keywords_type.0 %]
</td>
<td>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment