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
77ae3351
Commit
77ae3351
authored
Jan 19, 2008
by
dkl%redhat.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 412850: Rename the webservice method Bug.get_bugs() to simple Bug.get()
David Lawrence <dkl@redhat.com> r=mkanat
parent
be10baab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
Bug.pm
Bugzilla/WebService/Bug.pm
+10
-2
bz_webservice_demo.pl
contrib/bz_webservice_demo.pl
+5
-3
No files found.
Bugzilla/WebService/Bug.pm
View file @
77ae3351
...
...
@@ -57,11 +57,17 @@ use constant GLOBAL_SELECT_FIELDS => qw(
use
constant
PRODUCT_SPECIFIC_FIELDS
=>
qw(version target_milestone component)
;
######################################################
# Add aliases here for old method name compatibility #
######################################################
BEGIN
{
*
get_bugs
=
\&
get
}
###########
# Methods #
###########
sub
get
_bugs
{
sub
get
{
my
(
$self
,
$params
)
=
@_
;
my
$ids
=
$params
->
{
ids
};
defined
$ids
||
ThrowCodeError
(
'param_required'
,
{
param
=>
'ids'
});
...
...
@@ -280,7 +286,7 @@ You specified a field that doesn't exist or isn't a drop-down field.
=over
=item C<get
_bugs
> B<EXPERIMENTAL>
=item C<get> B<EXPERIMENTAL>
=over
...
...
@@ -288,6 +294,8 @@ You specified a field that doesn't exist or isn't a drop-down field.
Gets information about particular bugs in the database.
Note: Can also be called as "get_bugs" for compatibilty with Bugzilla 3.0 API.
=item B<Params>
=over
...
...
contrib/bz_webservice_demo.pl
View file @
77ae3351
...
...
@@ -235,13 +235,15 @@ if (defined($Bugzilla_login)) {
=head2 Retrieving Bug Information
Call C<Bug.get_bug> with the ID of the bug you want to know more of.
The call will return a C<Bugzilla::Bug> object.
Call C<Bug.get> with the ID of the bug you want to know more of.
The call will return a C<Bugzilla::Bug> object.
Note: You can also use "Bug.get_bugs" for compatibility with Bugzilla 3.0 API.
=cut
if
(
$bug_id
)
{
$soapresult
=
$proxy
->
call
(
'Bug.get
_bugs
'
,
{
ids
=>
[
$bug_id
]
});
$soapresult
=
$proxy
->
call
(
'Bug.get'
,
{
ids
=>
[
$bug_id
]
});
_die_on_fault
(
$soapresult
);
$result
=
$soapresult
->
result
;
my
$bug
=
$result
->
{
bugs
}
->
[
0
];
...
...
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