Skip to content
Snippets Groups Projects
Commit 6d531a35 authored by vtigerosm's avatar vtigerosm
Browse files

Fixes #552 - 1st Comment not show in summary

parents 19c849d4 cfff2cae
No related branches found
No related tags found
No related merge requests found
......@@ -478,9 +478,11 @@ class Vtiger_Detail_View extends Vtiger_Index_View {
}
$pagingModel->calculatePageRange($recentComments);
array_pop($recentComments);
$modCommentsModel = Vtiger_Module_Model::getInstance('ModComments');
if ($pagingModel->get('limit') < count($recentComments)) {
array_pop($recentComments);
}
$modCommentsModel = Vtiger_Module_Model::getInstance('ModComments');
$fileNameFieldModel = Vtiger_Field::getInstance("filename", $modCommentsModel);
$fileFieldModel = Vtiger_Field_Model::getInstanceFromFieldObject($fileNameFieldModel);
......
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