When a query is extended it creates a new instance of the query object. This patch takes that into account.

Comments

james.elliott’s picture

Status: Active » Needs review
quicksketch’s picture

Thanks James! Does this mean that we have the exact same problem just a few lines earlier when we extend the query for table sort?

    if (is_array($header)) {
      $pager_query->extend('TableSort')->orderByHeader($header);
    }
    else {
      $pager_query->orderBy('sid', 'ASC');
    }
quicksketch’s picture

Status: Needs review » Fixed
StatusFileSize
new1.54 KB

Here's a patch that makes the same change to the table sort extender and fixes the sorting on those pages. I've confirmed your patch works properly and I've committed this combined set of changes.

Status: Fixed » Closed (fixed)

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