Skip to content

Commit

Permalink
Forward model option to PaginatorHelper::link().
Browse files Browse the repository at this point in the history
Fixes #3193
  • Loading branch information
markstory committed Sep 12, 2012
1 parent ce1b387 commit 2bbf6bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/View/Helper/PaginatorHelper.php
Expand Up @@ -471,7 +471,7 @@ protected function _pagingLink($which, $title = null, $options = array(), $disab
$url = array_merge(array('page' => $paging['page'] + ($which == 'Prev' ? $step * -1 : $step)), $url);

if ($this->{$check}($model)) {
return $this->Html->tag($tag, $this->link($title, $url, array_merge($options, compact('escape'))), compact('class'));
return $this->Html->tag($tag, $this->link($title, $url, array_merge($options, compact('escape', 'model'))), compact('class'));
} else {
unset($options['rel']);
return $this->Html->tag($tag, $title, array_merge($options, compact('escape', 'class')));
Expand Down

0 comments on commit 2bbf6bd

Please sign in to comment.