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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
d120b303
Commit
d120b303
authored
Mar 26, 2020
by
Давид Добряков
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix keyword Error 500 bug
parent
d4142dcc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
.gitignore
.gitignore
+0
-1
Search.pm
Bugzilla/Search.pm
+3
-3
No files found.
.gitignore
View file @
d120b303
...
...
@@ -9,7 +9,6 @@
/data
/localconfig
/index.html
*.*~
/skins/contrib/Dusk/admin.css
/skins/contrib/Dusk/bug.css
Bugzilla/Search.pm
View file @
d120b303
...
...
@@ -2054,12 +2054,12 @@ sub build_subselect {
# unconditionally, so we return the subselect and let the DB optimizer
# restrict the search based on other search criteria.
my
$not
=
$negate
?
"NOT"
:
""
;
return
"$outer $not IN (SELECT DISTINCT $inner FROM
`$table`
WHERE $cond)"
;
return
"$outer $not IN (SELECT DISTINCT $inner FROM
$table
WHERE $cond)"
;
}
# Execute subselects immediately to avoid dependent subqueries, which are
# large performance hits on MySql
my
$q
=
"SELECT DISTINCT $inner FROM
`$table`
WHERE $cond"
;
my
$q
=
"SELECT DISTINCT $inner FROM
$table
WHERE $cond"
;
my
$dbh
=
Bugzilla
->
dbh
;
my
$list
=
$dbh
->
selectcol_arrayref
(
$q
);
return
$negate
?
"1=1"
:
"1=2"
unless
@$list
;
...
...
@@ -2484,7 +2484,7 @@ sub _user_nonchanged {
my
$table
=
$first_join
->
{
table
};
my
$columns
=
"bug_id"
;
$columns
.=
",isprivate"
if
@
{
$first_join
->
{
extra
}};
my
$new_table
=
"SELECT DISTINCT $columns FROM
`$table`
AS $as $join_sql"
;
my
$new_table
=
"SELECT DISTINCT $columns FROM
$table
AS $as $join_sql"
;
$first_join
->
{
table
}
=
"($new_table)"
;
# We always want to LEFT JOIN the generated table.
...
...
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