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
dcec9de3
Commit
dcec9de3
authored
Jun 05, 2013
by
Simon Green
Committed by
Frédéric Buclin
Jun 05, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 878623: Improvement in retrieving a classification name from bug
r=glob a=LpSolit
parent
ed227115
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
Bug.pm
Bugzilla/Bug.pm
+2
-8
No files found.
Bugzilla/Bug.pm
View file @
dcec9de3
...
...
@@ -3308,21 +3308,15 @@ sub component_obj {
sub
classification_id
{
my
(
$self
)
=
@_
;
return
$self
->
{
classification_id
}
if
exists
$self
->
{
classification_id
};
return
0
if
$self
->
{
error
};
(
$self
->
{
classification_id
})
=
Bugzilla
->
dbh
->
selectrow_array
(
'SELECT classification_id FROM products WHERE id = ?'
,
undef
,
$self
->
{
product_id
});
$self
->
{
classification_id
}
//
=
$self
->
product_obj
->
classification_id
;
return
$self
->
{
classification_id
};
}
sub
classification
{
my
(
$self
)
=
@_
;
return
$self
->
{
classification
}
if
exists
$self
->
{
classification
};
return
''
if
$self
->
{
error
};
(
$self
->
{
classification
})
=
Bugzilla
->
dbh
->
selectrow_array
(
'SELECT name FROM classifications WHERE id = ?'
,
undef
,
$self
->
classification_id
);
$self
->
{
classification
}
//
=
$self
->
product_obj
->
classification
->
name
;
return
$self
->
{
classification
};
}
...
...
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