Commit 395713ba authored by webchick's avatar webchick

#392494 follow-up by yched: Clean-ups to Field API scalar search patch.

parent 967564af
......@@ -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().
......
......@@ -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() {
......
......@@ -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 .= '%';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment