The SearchAPIViewQuery use the attribute "offset" and "limit" as protected.

The error is this: "Fatal error: Cannot access protected property SearchApiViewsQuery::$limit in /home/devmerge/www/b2brazil-v2/public/sites/all/modules/contrib/eck/views/handlers/eck_views_handler_field_link_delete.inc on line 27"

eck/views/handlers/eck_views_handler_field_link_delete.inc on line 27:
"if (count($this->view->result) == 1 && $this->view->query->offset >= $this->view->query->limit) {"

Maybe you may use "$this->view->get_offset()" and "$this->view->get_items_per_page()"

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

peterpoe’s picture

Title: Problem in integration od ECK + SearchAPI + Views » Delete link should use API to check for limit and offset
Version: 7.x-2.0-rc7 » 7.x-2.x-dev
Assigned: extqy » Unassigned
Status: Active » Needs review
FileSize
1.14 KB

This also happens when the view has no pagination and exactly one result.

Status: Needs review » Needs work

The last submitted patch, 1: delete-link-check-pager-2456729-1.patch, failed testing. View results