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
f53defbc
Commit
f53defbc
authored
Jun 15, 2015
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 1169767: Upgrading from pre-4.4 to master fails
r=dkl a=glob
parent
1ed6e01b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
BugChange.pm
Bugzilla/Config/BugChange.pm
+8
-10
No files found.
Bugzilla/Config/BugChange.pm
View file @
f53defbc
...
...
@@ -13,6 +13,7 @@ use warnings;
use
Bugzilla::Config::
Common
;
use
Bugzilla::
Status
;
use
Bugzilla::
Field
;
our
$sortkey
=
500
;
...
...
@@ -31,15 +32,6 @@ sub get_param_list {
@closed_bug_statuses
=
@current_closed_states
if
scalar
(
@current_closed_states
);
};
my
$resolution_field
=
Bugzilla::
Field
->
new
({
name
=>
'resolution'
,
cache
=>
1
});
my
@resolutions
=
();
# The 'fielddefs' table is not yet populated when running checksetup.pl
# for the first time.
if
(
$resolution_field
)
{
# The empty resolution is included - it represents "no value"
@resolutions
=
map
{
$_
->
name
}
@
{
$resolution_field
->
legal_values
};
}
my
@param_list
=
(
{
name
=>
'duplicate_or_move_bug_status'
,
...
...
@@ -82,7 +74,7 @@ sub get_param_list {
{
name
=>
'resolution_forbidden_with_open_blockers'
,
type
=>
's'
,
choices
=>
\
@
resolutions
,
choices
=>
\
&
_get_
resolutions
,
default
=>
''
,
checker
=>
\&
check_resolution
,
}
);
...
...
@@ -90,4 +82,10 @@ sub get_param_list {
return
@param_list
;
}
sub
_get_resolutions
{
my
$resolution_field
=
Bugzilla::
Field
->
new
({
name
=>
'resolution'
,
cache
=>
1
});
# The empty resolution is included - it represents "no value".
return
[
map
{
$_
->
name
}
@
{
$resolution_field
->
legal_values
}
];
}
1
;
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