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
1ed42e89
Commit
1ed42e89
authored
Jun 17, 2013
by
Simon Green
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 880097 - Only retrieve database fetched values if requested
r=glob, a=LpSolit
parent
7ac0c721
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
Bug.pm
Bugzilla/WebService/Bug.pm
+13
-4
No files found.
Bugzilla/WebService/Bug.pm
View file @
1ed42e89
...
...
@@ -868,8 +868,6 @@ sub _bug_to_hash {
# database call to get the info.
my
%
item
=
(
alias
=>
$self
->
type
(
'string'
,
$bug
->
alias
),
classification
=>
$self
->
type
(
'string'
,
$bug
->
classification
),
component
=>
$self
->
type
(
'string'
,
$bug
->
component
),
creation_time
=>
$self
->
type
(
'dateTime'
,
$bug
->
creation_ts
),
# No need to format $bug->deadline specially, because Bugzilla::Bug
# already does it for us.
...
...
@@ -880,7 +878,6 @@ sub _bug_to_hash {
op_sys
=>
$self
->
type
(
'string'
,
$bug
->
op_sys
),
platform
=>
$self
->
type
(
'string'
,
$bug
->
rep_platform
),
priority
=>
$self
->
type
(
'string'
,
$bug
->
priority
),
product
=>
$self
->
type
(
'string'
,
$bug
->
product
),
resolution
=>
$self
->
type
(
'string'
,
$bug
->
resolution
),
severity
=>
$self
->
type
(
'string'
,
$bug
->
bug_severity
),
status
=>
$self
->
type
(
'string'
,
$bug
->
bug_status
),
...
...
@@ -902,6 +899,12 @@ sub _bug_to_hash {
my
@blocks
=
map
{
$self
->
type
(
'int'
,
$_
)
}
@
{
$bug
->
blocked
};
$item
{
'blocks'
}
=
\
@blocks
;
}
if
(
filter_wants
$params
,
'classification'
)
{
$item
{
classification
}
=
$self
->
type
(
'string'
,
$bug
->
classification
);
}
if
(
filter_wants
$params
,
'component'
)
{
$item
{
component
}
=
$self
->
type
(
'string'
,
$bug
->
component
);
}
if
(
filter_wants
$params
,
'cc'
)
{
my
@cc
=
map
{
$self
->
type
(
'email'
,
$_
)
}
@
{
$bug
->
cc
};
$item
{
'cc'
}
=
\
@cc
;
...
...
@@ -929,6 +932,9 @@ sub _bug_to_hash {
@
{
$bug
->
keyword_objects
};
$item
{
'keywords'
}
=
\
@keywords
;
}
if
(
filter_wants
$params
,
'product'
)
{
$item
{
product
}
=
$self
->
type
(
'string'
,
$bug
->
product
);
}
if
(
filter_wants
$params
,
'qa_contact'
)
{
my
$qa_login
=
$bug
->
qa_contact
?
$bug
->
qa_contact
->
login
:
''
;
$item
{
'qa_contact'
}
=
$self
->
type
(
'email'
,
$qa_login
);
...
...
@@ -968,7 +974,10 @@ sub _bug_to_hash {
if
(
Bugzilla
->
user
->
is_timetracker
)
{
$item
{
'estimated_time'
}
=
$self
->
type
(
'double'
,
$bug
->
estimated_time
);
$item
{
'remaining_time'
}
=
$self
->
type
(
'double'
,
$bug
->
remaining_time
);
$item
{
'actual_time'
}
=
$self
->
type
(
'double'
,
$bug
->
actual_time
);
if
(
filter_wants
$params
,
'actual_time'
)
{
$item
{
'actual_time'
}
=
$self
->
type
(
'double'
,
$bug
->
actual_time
);
}
}
if
(
Bugzilla
->
user
->
id
)
{
...
...
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