BUG 9917 No se actualiza el paginado en el file manager despué.. SOLVED
- no was validated files deleted. - was add validation for files deleted.
This commit is contained in:
@@ -203,7 +203,7 @@ if($limit != 0){
|
||||
return $folderArray;
|
||||
}
|
||||
|
||||
function getFolderContent($folderID, $docIdFilter = array(), $keyword = NULL, $searchType = NULL, $limit=0, $start=0, $user='') {
|
||||
function getFolderContent($folderID, $docIdFilter = array(), $keyword = NULL, $searchType = NULL, $limit=0, $start=0, $user='', $onlyActive=false) {
|
||||
require_once ("classes/model/AppDocument.php");
|
||||
require_once ("classes/model/InputDocument.php");
|
||||
require_once ("classes/model/OutputDocument.php");
|
||||
@@ -253,6 +253,9 @@ if($limit != 0){
|
||||
}
|
||||
$oCriteria->add ( AppDocumentPeer::APP_UID, $data, CRITERIA::IN );
|
||||
}
|
||||
if ($onlyActive){
|
||||
$oCriteria->add(AppDocumentPeer::APP_DOC_STATUS, 'ACTIVE');
|
||||
}
|
||||
|
||||
$oCase->verifyTable ();
|
||||
|
||||
|
||||
@@ -133,7 +133,7 @@ function expandNode()
|
||||
global $RBAC;
|
||||
$user = ($RBAC->userCanAccess('PM_ALLCASES') == 1)? '' : $_SESSION['USER_LOGGED'];
|
||||
$folderContentObj = $oPMFolder->getFolderContent ($_POST ['node'] != 'root' ?
|
||||
$_POST ['node'] == 'NA' ? "" : $_POST ['node'] : $rootFolder, array(), null, null, $limit, $start, $user);
|
||||
$_POST ['node'] == 'NA' ? "" : $_POST ['node'] : $rootFolder, array(), null, null, $limit, $start, $user, true);
|
||||
$folderContent=$folderContentObj['documents'];
|
||||
$totalDocuments=$folderContentObj['totalDocumentsCount'];
|
||||
$totalItems+=count($folderContent);
|
||||
|
||||
Reference in New Issue
Block a user