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
bb7585e3
Commit
bb7585e3
authored
Oct 24, 2009
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 522620: Make Bugzilla::Bug->create case-insensitive for version and target_milestone values
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=dkl, a=mkanat
parent
99328846
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
Bug.pm
Bugzilla/Bug.pm
+8
-5
No files found.
Bugzilla/Bug.pm
View file @
bb7585e3
...
...
@@ -37,8 +37,10 @@ use Bugzilla::Flag;
use
Bugzilla::
FlagType
;
use
Bugzilla::
Hook
;
use
Bugzilla::
Keyword
;
use
Bugzilla::
Milestone
;
use
Bugzilla::
User
;
use
Bugzilla::
Util
;
use
Bugzilla::
Version
;
use
Bugzilla::
Error
;
use
Bugzilla::
Product
;
use
Bugzilla::
Component
;
...
...
@@ -1657,9 +1659,9 @@ sub _check_target_milestone {
$target
=
trim
(
$target
);
$target
=
$product
->
default_milestone
if
!
defined
$target
;
check_field
(
'target_milestone'
,
$target
,
[
map
(
$_
->
name
,
@
{
$product
->
milestones
})]
);
return
$
target
;
my
$object
=
Bugzilla::
Milestone
->
check
(
{
product
=>
$product
,
name
=>
$target
}
);
return
$
object
->
name
;
}
sub
_check_time
{
...
...
@@ -1681,8 +1683,9 @@ sub _check_version {
my
(
$invocant
,
$version
,
$product
)
=
@_
;
$version
=
trim
(
$version
);
(
$product
=
$invocant
->
product_obj
)
if
ref
$invocant
;
check_field
(
'version'
,
$version
,
[
map
(
$_
->
name
,
@
{
$product
->
versions
})]);
return
$version
;
my
$object
=
Bugzilla::
Version
->
check
({
product
=>
$product
,
name
=>
$version
});
return
$object
->
name
;
}
sub
_check_work_time
{
...
...
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