Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
395713ba
Commit
395713ba
authored
Jun 07, 2009
by
webchick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#392494
follow-up by yched: Clean-ups to Field API scalar search patch.
parent
967564af
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
7 deletions
+1
-7
modules/field/field.attach.inc
modules/field/field.attach.inc
+1
-1
modules/field/field.test
modules/field/field.test
+0
-2
modules/field/modules/field_sql_storage/field_sql_storage.module
.../field/modules/field_sql_storage/field_sql_storage.module
+0
-4
No files found.
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