While the update hook imports the CSS into the database that was previously stored as a file, CSS that is only displayed on specific pages will be added everywhere unless that filter is manually re-added.

Comments

maustyle’s picture

i have the same issue, all the pages of my website inherited all the specific CSS files that are meant to be "only" for specific pages, this is causing a complete "style mess" to everyone that upgrades to this version.

pookmish’s picture

This is a tough one here

    db_query('update css_injector_rule set page_visibility = rule_type where rule_conditions is not null and page_visibility_pages is null');
    db_query('update css_injector_rule set page_visibility_pages = rule_conditions where rule_conditions is not null and page_visibility_pages is null');
    db_query('update css_injector_rule set admin_description = name where admin_description is null');
    db_drop_field('css_injector_rule', 'rule_type');
    db_drop_field('css_injector_rule', 'rule_conditions');