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
2799e118
Commit
2799e118
authored
Sep 18, 2013
by
Dave Lawrence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 916979 - Bug.search ignores the "limit" parameter
a/r=glob
parent
4ab99774
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
10 deletions
+6
-10
Bug.pm
Bugzilla/Bug.pm
+0
-4
Bug.pm
Bugzilla/WebService/Bug.pm
+6
-6
No files found.
Bugzilla/Bug.pm
View file @
2799e118
...
...
@@ -270,10 +270,6 @@ use constant FIELD_MAP => {
summary
=>
'short_desc'
,
url
=>
'bug_file_loc'
,
whiteboard
=>
'status_whiteboard'
,
# These are special values for the WebService Bug.search method.
limit
=>
'LIMIT'
,
offset
=>
'OFFSET'
,
};
use
constant
REQUIRED_FIELD_MAP
=>
{
...
...
Bugzilla/WebService/Bug.pm
View file @
2799e118
...
...
@@ -493,19 +493,19 @@ sub search {
}
my
%
match_params
=
%
{
$params
};
delete
$
params
->
{
include_fields
};
delete
$
params
->
{
exclude_fields
};
delete
$
match_params
{
include_fields
};
delete
$
match_params
{
exclude_fields
};
# If no other parameters have been passed other than limit and offset
# then we throw error if system is configured to do so.
if
(
!
grep
(
!
/^(limit|offset)$/
i
,
keys
%
$
params
)
if
(
!
grep
(
!
/^(limit|offset)$/
,
keys
%
match_
params
)
&&
!
Bugzilla
->
params
->
{
search_allow_no_criteria
})
{
ThrowUserError
(
'buglist_parameters_required'
);
}
$options
{
order_columns
}
=
[
split
(
/\s*,\s*/
,
delete
$
params
->
{
order
})
]
if
$params
->
{
order
};
$options
{
params
}
=
$
params
;
$options
{
order_columns
}
=
[
split
(
/\s*,\s*/
,
delete
$
match_params
{
order
})
]
if
$match_params
{
order
};
$options
{
params
}
=
\%
match_
params
;
my
$search
=
new
Bugzilla::
Search
(
%
options
);
my
(
$data
)
=
$search
->
data
;
...
...
@@ -518,7 +518,7 @@ sub search {
my
@bug_ids
=
map
{
$_
->
[
0
]
}
@$data
;
my
$bug_objects
=
Bugzilla::
Bug
->
new_from_list
(
\
@bug_ids
);
my
@bugs
=
map
{
$self
->
_bug_to_hash
(
$_
,
\%
match_
params
)
}
@$bug_objects
;
my
@bugs
=
map
{
$self
->
_bug_to_hash
(
$_
,
$
params
)
}
@$bug_objects
;
return
{
bugs
=>
\
@bugs
};
}
...
...
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