Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
m4oliveiSure! I'll review any patch submitted. I don't have this particular combination of modules installed anywhere so can neither confirm nor deny this.
Comment #2
Soubi@cslevy > Any news about your patch ?
Comment #3
lzimmerman CreditAttribution: lzimmerman commentedIn 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.
Comment #4
lzimmerman CreditAttribution: lzimmerman commentedVerified this fixes - submitted patch at #1690692-7.
Comment #5
zalak.addweb CreditAttribution: zalak.addweb commented