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
aff82a96
Commit
aff82a96
authored
Jan 23, 2009
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some nits that I forgot to fix on checkin for bug 474715.
parent
db7cfa42
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Object.pm
Bugzilla/Object.pm
+1
-2
Bug.pm
Bugzilla/WebService/Bug.pm
+3
-2
No files found.
Bugzilla/Object.pm
View file @
aff82a96
...
@@ -168,7 +168,6 @@ sub match {
...
@@ -168,7 +168,6 @@ sub match {
next
;
next
;
}
}
elsif
(
$field
eq
'WHERE'
)
{
elsif
(
$field
eq
'WHERE'
)
{
next
unless
$value
;
# the WHERE value is a hashref where the keys are
# the WHERE value is a hashref where the keys are
# "column_name operator ?" and values are the placeholder's
# "column_name operator ?" and values are the placeholder's
# value.
# value.
...
@@ -662,7 +661,7 @@ clauses to the underlying query. Its value is expected to a hash
...
@@ -662,7 +661,7 @@ clauses to the underlying query. Its value is expected to a hash
reference whose keys are the columns, operators and placeholders, and the
reference whose keys are the columns, operators and placeholders, and the
values are the placeholders' bind value. For example:
values are the placeholders' bind value. For example:
WHERE => {'some_column >= ?' => $some_value }
WHERE => {
'some_column >= ?' => $some_value }
would constrain the query to only those objects in the table whose
would constrain the query to only those objects in the table whose
'some_column' column has a value greater than or equal to $some_value.
'some_column' column has a value greater than or equal to $some_value.
...
...
Bugzilla/WebService/Bug.pm
View file @
aff82a96
...
@@ -221,8 +221,9 @@ sub get_history {
...
@@ -221,8 +221,9 @@ sub get_history {
sub
search
{
sub
search
{
my
(
$self
,
$params
)
=
@_
;
my
(
$self
,
$params
)
=
@_
;
if
(
$params
->
{
offset
}
and
!
$params
->
{
limit
}
)
{
if
(
defined
(
$params
->
{
offset
})
and
!
defined
(
$params
->
{
limit
})
)
{
ThrowCodeError
(
'param_required'
,
{
param
=>
'limit'
,
function
=>
'Bug.search()'
});
ThrowCodeError
(
'param_required'
,
{
param
=>
'limit'
,
function
=>
'Bug.search()'
});
}
}
$params
=
_map_fields
(
$params
);
$params
=
_map_fields
(
$params
);
...
...
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