This may be a similar issue to #967166: Content rendered via AJAX does not respect stylesheets removed in .info files but the patch doesn't fix it. Have tested this with the latest dev version of core.

1) Create a content type with a file upload field
2) Download and enable the Hierarchical Select module (and hs_menu)
3) Create a node, first use the HS menu widget, then try to upload a file (make sure you're using an admin theme).
4) You'll see the front-end theme's css is loaded when the file "Upload" button is clicked.

Comments

nod_’s picture

Have you tried the HS queue first? I haven't run into this kind of bug before.

acbramley’s picture

Yeah but no response there, I suspect it isn't an HS bug though since there are a few core issues that are similar to it and I have several sites using different versions of HS with vastly different contrib modules and all have exactly the same issue.

I posted in core as the issue I linked above seems to be almost the same thing, just sort of backwards :P

acbramley’s picture

This isn't localised to just HS, as described here http://drupal.stackexchange.com/questions/5921/how-do-i-prevent-d7s-ajax... where an ajax request from an admin page to a non admin page did exactly the same thing. I've used hook_admin_paths as a workaround fix for now.

pwolanin’s picture

Issue summary: View changes

I think I'm seeing this in 8.x also - is there another issue for it?

Status: Active » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.