I ran across this bug as I was putting some views in the backend. For example I've made a view to list products and I've templated this view so it shows SKU and stock in the same column. When the page first loads everything is fine and the template is used, the problem arises when I use the ajax paging, the template is ignored and the theme used is the default theme (which isn't the backend theme but the frontend one). Having looked at this further I've figured out that this happens because the page that is called with the ajax is "views/ajax". This isn't classed as an administration page so the admin theme is not applied and so it reverts to the default theme or the user selected theme.

I've created a patch that fixes this issue by checking on view_path during the ajax call to check if it's a backend page.

CommentFileSizeAuthor
ajax_theme_fix.patch694 byteskelvincool
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

merlinofchaos’s picture

Status: Needs review » Fixed

Committed to both 2.x and 3.x. THanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.