diff --git a/modules/Vtiger/models/Paging.php b/modules/Vtiger/models/Paging.php index 3fa34f680939f580a98ca22433b2b970b9015ba2..b4bef2b83f6769f3d840e22102852b905fb8373e 100644 --- a/modules/Vtiger/models/Paging.php +++ b/modules/Vtiger/models/Paging.php @@ -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 +}