Permalink
Browse files

Forward model option to PaginatorHelper::link().

Fixes #3193
  • Loading branch information...
markstory committed Sep 12, 2012
1 parent ce1b387 commit 2bbf6bd568a68098c227b379fb75642993c626cc
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/View/Helper/PaginatorHelper.php
@@ -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')));

0 comments on commit 2bbf6bd

Please sign in to comment.