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
d6bcb48d
Commit
d6bcb48d
authored
Feb 17, 2013
by
Matt Tyson
Committed by
Frédéric Buclin
Feb 17, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 839950: Cannot search by Change History on multi-select fields
r/a=LpSolit
parent
331fee41
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
Bug.pm
Bugzilla/Bug.pm
+6
-2
No files found.
Bugzilla/Bug.pm
View file @
d6bcb48d
...
...
@@ -3770,9 +3770,13 @@ sub bug_alias_to_id {
# Subroutines
#####################################################################
# Represents which fields from the bugs table are handled by process_bug.cgi.
# Returns a list of currently active and editable bug fields,
# including multi-select fields.
sub
editable_bug_fields
{
my
@fields
=
Bugzilla
->
dbh
->
bz_table_columns
(
'bugs'
);
# Add multi-select fields
push
(
@fields
,
map
{
$_
->
name
}
@
{
Bugzilla
->
fields
({
obsolete
=>
0
,
type
=>
FIELD_TYPE_MULTI_SELECT
})});
# Obsolete custom fields are not editable.
my
@obsolete_fields
=
@
{
Bugzilla
->
fields
({
obsolete
=>
1
,
custom
=>
1
})
};
@obsolete_fields
=
map
{
$_
->
name
}
@obsolete_fields
;
...
...
@@ -3780,7 +3784,7 @@ sub editable_bug_fields {
"lastdiffed"
,
@obsolete_fields
)
{
my
$location
=
firstidx
{
$_
eq
$remove
}
@fields
;
#
Custom multi-select fields are not stored in the bugs table
.
#
Ensure field exists before attempting to remove it
.
splice
(
@fields
,
$location
,
1
)
if
(
$location
>
-
1
);
}
return
@fields
;
...
...
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