Skip to content
Snippets Groups Projects
Commit c57249e7 authored by Alan Lord's avatar Alan Lord
Browse files

Fix bug #262

parent 05326ce4
No related branches found
No related tags found
No related merge requests found
......@@ -122,6 +122,9 @@ class Vtiger_Paging_Model extends Vtiger_Base_Model {
$rangeInfo = array();
$recordCount = count($recordList);
$pageLimit = $this->getPageLimit();
$this->set('prevPageExists', true);
if( $recordCount > 0) {
//specifies what sequencce number of last record in prev page
$prevPageLastRecordSequence = (($this->getCurrentPage()-1)*$pageLimit);
......@@ -149,4 +152,4 @@ class Vtiger_Paging_Model extends Vtiger_Base_Model {
return $this;
}
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment