Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
395713ba
Commit
395713ba
authored
Jun 07, 2009
by
webchick
Browse files
#392494
follow-up by yched: Clean-ups to Field API scalar search patch.
parent
967564af
Changes
3
Hide whitespace changes
Inline
Side-by-side
modules/field/field.attach.inc
View file @
395713ba
...
...
@@ -833,7 +833,7 @@ function field_attach_query($field_name, $conditions, $result_format = FIELD_QUE
// are therefore called on each object separately, which might cause
// performance issues when large numbers of revisions are retrieved.
foreach
(
$pseudo_objects
as
$vid
=>
$pseudo_object
)
{
list
(
$id
)
=
_
field_attach_extract_ids
(
$obj_type
,
$pseudo_object
);
list
(
$id
)
=
field_attach_extract_ids
(
$obj_type
,
$pseudo_object
);
$objects
=
array
(
$id
=>
$pseudo_object
);
// Invoke hook_field_load().
...
...
modules/field/field.test
View file @
395713ba
...
...
@@ -467,8 +467,6 @@ class FieldAttachTestCase extends DrupalWebTestCase {
),
);
$this
->
assertEqual
(
$result
,
$expected
,
t
(
'FIELD_QUERY_RETURN_VALUES result format returns the expect result'
));
// TODO : test
}
function
testFieldAttachViewAndPreprocess
()
{
...
...
modules/field/modules/field_sql_storage/field_sql_storage.module
View file @
395713ba
...
...
@@ -384,10 +384,6 @@ function field_sql_storage_field_storage_query($field_name, $conditions, $result
@
list
(
$column
,
$value
,
$operator
)
=
$condition
;
// Translate operator and value if needed.
switch
(
$operator
)
{
case
NULL
:
$operator
=
is_array
(
$value
)
?
'IN'
:
'='
;
break
;
case
'STARTS_WITH'
:
$operator
=
'LIKE'
;
$value
.
=
'%'
;
...
...
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