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
13e17b22
Commit
13e17b22
authored
Oct 22, 2009
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 522396: Bugzilla::Product->create should do better with missing input fields
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=dkl, a=mkanat
parent
700f6a06
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
Product.pm
Bugzilla/Product.pm
+5
-2
No files found.
Bugzilla/Product.pm
View file @
13e17b22
...
...
@@ -105,7 +105,9 @@ sub create {
my
$params
=
$class
->
run_create_validators
(
@_
);
# Some fields do not exist in the DB as is.
$params
->
{
classification_id
}
=
delete
$params
->
{
classification
};
if
(
defined
$params
->
{
classification
})
{
$params
->
{
classification_id
}
=
delete
$params
->
{
classification
};
}
my
$version
=
delete
$params
->
{
version
};
my
$create_series
=
delete
$params
->
{
create_series
};
...
...
@@ -113,7 +115,8 @@ sub create {
# Add the new version and milestone into the DB as valid values.
Bugzilla::
Version
->
create
({
name
=>
$version
,
product
=>
$product
});
Bugzilla::
Milestone
->
create
({
name
=>
$params
->
{
defaultmilestone
},
product
=>
$product
});
Bugzilla::
Milestone
->
create
({
name
=>
$product
->
default_milestone
,
product
=>
$product
});
# Create groups and series for the new product, if requested.
$product
->
_create_bug_group
()
if
Bugzilla
->
params
->
{
'makeproductgroups'
};
...
...
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