Hello,
I founded a solution time ago for this problem applying the patches for pagination_helper.php and AkAssociatedActiveRecord.php as described in http://trac.akelos.org/attachment/ticket/61
(I did not patch AkBelongsTo and AkHasOne)
After this modification, seems the count_conditions parameter in the getPaginator function works, displaying the correct number of pages in the listing view when doing a find with conditions.
As an example:
$_filter_pager = array('items_per_page' => 10, 'count_conditions' => 'name = '.$this->params['search']);
$_filter = array( 'conditions' => array('name = ?',$this->params['search']));
$_include = array();
// Pager
$_pager_options = array_merge($_filter_pager,$_include);
$this->pages = $this->pagination_helper->getPaginator($this->User, $_pager_options);
$_find_options = $this->pagination_helper->getFindOptions($this->User);
// List
$options = array_merge($_filter,$_include,$_find_options);
$this->users =& $this->User->find('all',$options);
Obviously, don't know if it is the best solution, but at least it works for me.
Hope it helps.
Jose
1 to 4 of 4