diff --git a/layouts/v7/modules/PriceBooks/RelatedList.tpl b/layouts/v7/modules/PriceBooks/RelatedList.tpl index d49874833f1e52158b92783053d61b7d6c1cc848..22ee8566bd1f6ceaef6b228750322500336eab65 100644 --- a/layouts/v7/modules/PriceBooks/RelatedList.tpl +++ b/layouts/v7/modules/PriceBooks/RelatedList.tpl @@ -20,6 +20,8 @@ <input type="hidden" value="{$SORT_ORDER}" id="sortOrder"> <input type="hidden" value="{$RELATED_ENTIRES_COUNT}" id="noOfEntries"> <input type='hidden' value="{$PAGING->getPageLimit()}" id='pageLimit'> + <input type='hidden' value="{$PAGING->get('page')}" id='pageNumber'> + <input type="hidden" value="{$PAGING->isNextPageExists()}" id="nextPageExist"/> <input type='hidden' value="{$TOTAL_ENTRIES}" id='totalCount'> <input type='hidden' value="{$TAB_LABEL}" id='tab_label' name='tab_label'> diff --git a/layouts/v7/modules/Vtiger/resources/RelatedList.js b/layouts/v7/modules/Vtiger/resources/RelatedList.js index fa97d206c2dd1002aac5d2171961a6f861c96bdf..3534a70cb00d7cbbbbda3cd0be9611f7fdb71aab 100644 --- a/layouts/v7/modules/Vtiger/resources/RelatedList.js +++ b/layouts/v7/modules/Vtiger/resources/RelatedList.js @@ -128,7 +128,7 @@ jQuery.Class("Vtiger_RelatedList_Js",{ thisInstance.selectedRelatedTabElement.addClass('active'); container = jQuery('div.details'); container.html(responseData); - thisInstance.initializePaginationEvents(); + thisInstance.initializePaginationEvents(); thisInstance.triggerRelationAdditionalActions(); app.event.trigger('post.relatedListLoad.click', container);