I have a sort exposed with Better Exposed Filter and also attached the Views Load More. If I have less items in the list and the load more is not displayed, the sort it's not working correctly. (Duplicates the items in the list). This is not related with the better exposed filters module. The views_load_more, unsets the ajax command.
I found the problem. The problem is related with this workaround in the module.

// This is a work-around for allowing exposed for on the page.
if ($view->query->pager->current_page == 0) {
      return;
}

The sort returns for $view->query->pager->current_page: '-2'
I will create also a patch for this.

Comments

m4olivei’s picture

Sure! I'll review any patch submitted. I don't have this particular combination of modules installed anywhere so can neither confirm nor deny this.

Soubi’s picture

@cslevy > Any news about your patch ?

lzimmerman’s picture

In case this is related - I am finding that some BEF filter selections (e.g. certain term selections) fail on an AJAX view with the Views Load More pager. It appears that in these cases, the "replace view content" command is being hijacked by the Load More "append" command, and the result is that the result list does not change.

lzimmerman’s picture

Verified this fixes - submitted patch at #1690692-7.

zalak.addweb’s picture

Issue tags: +views load more