Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Null != 'valid' type gets evulated to true, query gets run.
Comment | File | Size | Author |
---|---|---|---|
cck_private_fields_old_type.patch | 748 bytes | hefox |
Comments
Comment #1
hefox CreditAttribution: hefox commentedNote: 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.
Comment #2
smira CreditAttribution: smira commentedworks like a charm, thank you sir.