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
1a062f4e
Commit
1a062f4e
authored
Sep 04, 2012
by
Koosha Khajeh Moogahi
Committed by
Frédéric Buclin
Sep 04, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 783866: Add support to call Bugzilla::Milestone->check({ id => $id })
r/a=LpSolit
parent
8196e171
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
Milestone.pm
Bugzilla/Milestone.pm
+6
-4
No files found.
Bugzilla/Milestone.pm
View file @
1a062f4e
...
...
@@ -64,7 +64,7 @@ sub new {
my
$dbh
=
Bugzilla
->
dbh
;
my
$product
;
if
(
ref
$param
)
{
if
(
ref
$param
and
!
defined
$param
->
{
id
}
)
{
$product
=
$param
->
{
product
};
my
$name
=
$param
->
{
name
};
if
(
!
defined
$product
)
{
...
...
@@ -241,7 +241,9 @@ Bugzilla::Milestone - Bugzilla product milestone class.
use Bugzilla::Milestone;
my $milestone = new Bugzilla::Milestone({ name => $name, product => $product });
my $milestone = new Bugzilla::Milestone({ name => $name, product => $product_obj });
my $milestone = Bugzilla::Milestone->check({ name => $name, product => $product_obj });
my $milestone = Bugzilla::Milestone->check({ id => $id });
my $name = $milestone->name;
my $product_id = $milestone->product_id;
...
...
@@ -265,7 +267,7 @@ Milestone.pm represents a Product Milestone object.
=over
=item C<
new({name => $name, product => $product})
>
=item C<
< new({name => $name, product => $product}) >
>
Description: The constructor is used to load an existing milestone
by passing a product object and a milestone name.
...
...
@@ -355,7 +357,7 @@ Milestone.pm represents a Product Milestone object.
=over
=item C<
create({value => $value, product => $product, sortkey => $sortkey})
>
=item C<
< create({value => $value, product => $product, sortkey => $sortkey}) >
>
Description: Create a new milestone for the given product.
...
...
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