CakeDC/comments — Issue #27: callback_fetchData* overrides custom paginate settings
Author: tomasm-
Created: 2011-11-13 15:34:51+00:00
State: open

I am unable to customize paginate settings in comments_callbackFetchDataFlat(), etc because callback_fetchDataFlat() etc completely overrides $this->Controller->paginate['Comment'] (with just 'conditions' set). components/comments.php should say something like:

$this->Controller->paginate['Comment'] =
array_merge(
(!empty($this->Controller->paginate['Comment']) ?
$this->Controller->paginate['Comment'] : array()),
$paginate);

instead of just:

$this->Controller->paginate['Comment'] = $paginate;

(in each of the fetchData* methods)