Skip to content
Snippets Groups Projects
Commit 6aabc55d authored by Satish's avatar Satish
Browse files

Fixes #470 - vt7 dev release - Recent Comments miss load more

parent 6b44dadc
No related branches found
No related tags found
1 merge request!183Fixes #470 - vt7 dev release - Recent Comments miss load more
......@@ -205,8 +205,8 @@
{/if}
{if $PAGING_MODEL->isNextPageExists()}
<div class="row">
<div class="pull-right">
<a href="javascript:void(0)" class="moreRecentComments">{vtranslate('LBL_MORE',$MODULE_NAME)}..</a>
<div class="textAlignCenter">
<a href="javascript:void(0)" class="moreRecentComments">{vtranslate('LBL_SHOW_MORE',$MODULE_NAME)}</a>
</div>
</div>
{/if}
......
......@@ -130,8 +130,8 @@
{/if}
{if $PAGING_MODEL->isNextPageExists()}
<div class="row">
<div class="pull-right">
<a href="javascript:void(0)" class="moreRecentActivities" style="line-height: 0px;padding-right:30px;">{vtranslate('LBL_SHOW_MORE',$MODULE_NAME)}</a>
<div class="textAlignCenter">
<a href="javascript:void(0)" class="moreRecentActivities">{vtranslate('LBL_SHOW_MORE',$MODULE_NAME)}</a>
</div>
</div>
{/if}
......
......@@ -478,6 +478,7 @@ class Vtiger_Detail_View extends Vtiger_Index_View {
}
$pagingModel->calculatePageRange($recentComments);
array_pop($recentComments);
$modCommentsModel = Vtiger_Module_Model::getInstance('ModComments');
$fileNameFieldModel = Vtiger_Field::getInstance("filename", $modCommentsModel);
......
No preview for this file type
......@@ -241,6 +241,7 @@ class ModComments_Record_Model extends Vtiger_Record_Model {
if($pagingModel){
$startIndex = $pagingModel->getStartIndex();
$limit = $pagingModel->getPageLimit();
$limit = $limit+1;
$query = $query . " LIMIT $startIndex, $limit";
}
......
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