Null != 'valid' type gets evulated to true, query gets run.

CommentFileSizeAuthor
cck_private_fields_old_type.patch748 byteshefox
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hefox’s picture

Note: in the current state the update query db_query("UPDATE {cck_private_fields} SET content_type = 'type' WHERE content_type = 'NULL'", $info->type, $info->old_type) is run each hook_node_type $op = 'update', which is every cache clear, once per node type I think.

smira’s picture

works like a charm, thank you sir.