BUG 0000 "In HOME>Documents pager does not work" SOLVED
- In HOME>Documents pager does not work - Fixed, Added total records variable, The pager now work correctly * Available from version 2.0.46
This commit is contained in:
@@ -275,6 +275,8 @@ class AppFolder extends BaseAppFolder
|
||||
$oCriteria->add( AppDocumentPeer::APP_DOC_STATUS, 'ACTIVE' );
|
||||
}
|
||||
|
||||
$numRecTotal = AppDocumentPeer::doCount($oCriteria);
|
||||
|
||||
$oCase->verifyTable();
|
||||
|
||||
$oCriteria->addAscendingOrderByColumn( AppDocumentPeer::APP_DOC_INDEX );
|
||||
@@ -321,8 +323,10 @@ class AppFolder extends BaseAppFolder
|
||||
}
|
||||
$rs->next();
|
||||
}
|
||||
$response['totalDocumentsCount'] = count($response['documents']);
|
||||
return ($response);
|
||||
|
||||
$response["totalDocumentsCount"] = $numRecTotal;
|
||||
|
||||
return $response;
|
||||
}
|
||||
|
||||
public function getCompleteDocumentInfo ($appUid, $appDocUid, $docVersion, $docUid, $usrId)
|
||||
|
||||
Reference in New Issue
Block a user