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
08525a87
Commit
08525a87
authored
Oct 21, 2006
by
olav%bkor.dhs.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 352695: Custom select fields are mandatory on bug creation (despite they shouldn't be)
Patch by Olav Vitters <olav@bkor.dhs.org> r=LpSolit a=myk
parent
a39a4ef2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
post_bug.cgi
post_bug.cgi
+4
-1
No files found.
post_bug.cgi
View file @
08525a87
...
...
@@ -123,7 +123,10 @@ $template->process($format->{'template'}, $vars, \$comment)
my
@custom_bug_fields
=
Bugzilla
->
get_fields
(
{
custom
=>
1
,
obsolete
=>
0
,
enter_bug
=>
1
});
my
@bug_fields
=
map
{
$_
->
name
}
@custom_bug_fields
;
# Undefined custom fields are ignored to ensure they will get their default
# value (e.g. "---" for custom single select fields).
my
@bug_fields
=
grep
{
defined
$cgi
->
param
(
$_
->
name
)
}
@custom_bug_fields
;
@bug_fields
=
map
{
$_
->
name
}
@bug_fields
;
# Custom tables must be locked (required when validating custom fields).
my
@custom_tables
=
grep
{
$_
->
type
==
FIELD_TYPE_SINGLE_SELECT
}
@custom_bug_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