Skip to content
Snippets Groups Projects
Commit ece2fcdb authored by kaushik p's avatar kaushik p
Browse files

Fixes::158206801::Kaushik::All products were not displaying while adding to ...

Fixes::158206801::Kaushik::All products were not displaying while adding to  product bundle along with total count not updated fixed
parent 3e59f2df
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@
<input type="hidden" id="pageEndRange" value="{$PAGING_MODEL->getRecordEndRange()}" />
<input type="hidden" id="previousPageExist" value="{$PAGING_MODEL->isPrevPageExists()}" />
<input type="hidden" id="nextPageExist" value="{$PAGING_MODEL->isNextPageExists()}" />
<input type="hidden" id="totalCount" value="{$listviewcount}" />
<input type="hidden" id="totalCount" value="{$LISTVIEW_COUNT}" />
<input type="hidden" value="{Vtiger_Util_Helper::toSafeHTML(Zend_JSON::encode($SEARCH_DETAILS))}" id="currentSearchParams" />
<div class="contents-topscroll">
<div class="topscroll-div">
......
......@@ -93,8 +93,6 @@ class Products_ListView_Model extends Vtiger_ListView_Model {
if(($sourceModule !== 'PriceBooks' && $sourceField !== 'priceBookRelatedList')
&& ($sourceModule !== 'Products' && $sourceField !== 'productsList')) {
$listQuery .= " LIMIT $startIndex,".($pageLimit+1);
} else {
$listQuery .= " LIMIT $startIndex,".($pageLimit+1); // select limit was only updating for other modules, the limit was not set , cause of 0th index adding +1.
}
$listResult = $db->pquery($listQuery, array());
......
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