BUG 10980 Issue in pagination displaying "Messages History" SOLVED

- Pagination doesn't work
- Fix pagination
This commit is contained in:
Julio Cesar Laura
2013-03-12 12:12:44 -04:00
parent defebb3099
commit feb3d4d2fd
2 changed files with 6 additions and 3 deletions

View File

@@ -5751,7 +5751,7 @@ class Cases
* @return array
*/
public function getHistoryMessagesTrackerExt($sApplicationUID, $start = null, $limit = null)
public function getHistoryMessagesTrackerExt($sApplicationUID, $onlyVisibles = false, $start = null, $limit = null)
{
G::LoadClass('ArrayPeer');
global $_DBArray;
@@ -5759,6 +5759,9 @@ class Cases
$oAppDocument = new AppDocument();
$oCriteria = new Criteria('workflow');
$oCriteria->add(AppMessagePeer::APP_UID, $sApplicationUID);
if ($onlyVisibles) {
$oCriteria->add(AppMessagePeer::APP_MSG_SHOW_MESSAGE, 1);
}
$oCriteria->addAscendingOrderByColumn(AppMessagePeer::APP_MSG_DATE);
if (!is_null($start)) {
$oCriteria->setOffset($start);

View File

@@ -40,8 +40,8 @@ if ($actionAjax == 'messageHistoryGridList_JXP') {
global $G_PUBLISH;
$oCase = new Cases();
$appMessageArray = $oCase->getHistoryMessagesTrackerExt( $_SESSION['APPLICATION'], $_REQUEST['start'], $_REQUEST['limit']);
$appMessageCountArray = $oCase->getHistoryMessagesTrackerExt( $_SESSION['APPLICATION']);
$appMessageArray = $oCase->getHistoryMessagesTrackerExt( $_SESSION['APPLICATION'], true, $_REQUEST['start'], $_REQUEST['limit']);
$appMessageCountArray = $oCase->getHistoryMessagesTrackerExt( $_SESSION['APPLICATION'], true);
$result = new stdClass();
$aProcesses = Array ();