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
8196e171
Commit
8196e171
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 779799: Add support to call Bugzilla::Version->check({ id => $id })
r/a=LpSolit
parent
2443f7ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
Version.pm
Bugzilla/Version.pm
+5
-3
No files found.
Bugzilla/Version.pm
View file @
8196e171
...
...
@@ -65,7 +65,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
)
{
...
...
@@ -207,14 +207,16 @@ Bugzilla::Version - Bugzilla product version class.
use Bugzilla::Version;
my $version = new Bugzilla::Version({ name => $name, product => $product });
my $version = new Bugzilla::Version({ name => $name, product => $product_obj });
my $version = Bugzilla::Version->check({ name => $name, product => $product_obj });
my $version = Bugzilla::Version->check({ id => $id });
my $value = $version->name;
my $product_id = $version->product_id;
my $product = $version->product;
my $version = Bugzilla::Version->create(
{ value => $name, product => $product });
{ value => $name, product => $product
_obj
});
$version->set_name($new_name);
$version->update();
...
...
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