- Patch #676046 by chx: fixed oopsie in taxonomy index.

merge-requests/26/head
Dries Buytaert 2010-01-06 16:40:08 +00:00
parent 6a7f341e61
commit 8a07a7895c
1 changed files with 1 additions and 1 deletions

View File

@ -1404,7 +1404,7 @@ function taxonomy_field_insert($obj_type, $object, $field, $instance, $langcode,
* Implements hook_field_update().
*/
function taxonomy_field_update($obj_type, $object, $field, $instance, $langcode, &$items) {
if (variable_get('taxonomy_maintain_index_table', TRUE) && $field['storage']['type'] == 'field_sql_storage' && $obj_type = 'node') {
if (variable_get('taxonomy_maintain_index_table', TRUE) && $field['storage']['type'] == 'field_sql_storage' && $obj_type == 'node') {
$first_call = &drupal_static(__FUNCTION__, array());
// We don't maintain data for old revisions, so clear all previous values