bug with content pagination
There's a bug with pagination in content module. If you set different page view permissions, the pagination doesn't render properly
A solution would be to change the way of getting contents..
in function getContentsCriteria() add the following line:
change in function getContents() from
to:
and use the function getContentsCount() for getCount to count Objects for Pagination on content/index.php line 39
A solution would be to change the way of getting contents..
in function getContentsCriteria() add the following line:
$this->setGrantedObjectsCriteria($criteria, 'content_read');
change in function getContents() from
foreach ($contents as $content){
if ($content['accessgranted']){
$ret[$content['content_id']] = $content;
}
}
to:
foreach ($contents as $content){
$ret[$content['content_id']] = $content;
}
and use the function getContentsCount() for getCount to count Objects for Pagination on content/index.php line 39
Leave a comment