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;
|
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/AppDocument.php");
|
||||||
require_once ("classes/model/InputDocument.php");
|
require_once ("classes/model/InputDocument.php");
|
||||||
require_once ("classes/model/OutputDocument.php");
|
require_once ("classes/model/OutputDocument.php");
|
||||||
@@ -253,6 +253,9 @@ if($limit != 0){
|
|||||||
}
|
}
|
||||||
$oCriteria->add ( AppDocumentPeer::APP_UID, $data, CRITERIA::IN );
|
$oCriteria->add ( AppDocumentPeer::APP_UID, $data, CRITERIA::IN );
|
||||||
}
|
}
|
||||||
|
if ($onlyActive){
|
||||||
|
$oCriteria->add(AppDocumentPeer::APP_DOC_STATUS, 'ACTIVE');
|
||||||
|
}
|
||||||
|
|
||||||
$oCase->verifyTable ();
|
$oCase->verifyTable ();
|
||||||
|
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ function expandNode()
|
|||||||
global $RBAC;
|
global $RBAC;
|
||||||
$user = ($RBAC->userCanAccess('PM_ALLCASES') == 1)? '' : $_SESSION['USER_LOGGED'];
|
$user = ($RBAC->userCanAccess('PM_ALLCASES') == 1)? '' : $_SESSION['USER_LOGGED'];
|
||||||
$folderContentObj = $oPMFolder->getFolderContent ($_POST ['node'] != 'root' ?
|
$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'];
|
$folderContent=$folderContentObj['documents'];
|
||||||
$totalDocuments=$folderContentObj['totalDocumentsCount'];
|
$totalDocuments=$folderContentObj['totalDocumentsCount'];
|
||||||
$totalItems+=count($folderContent);
|
$totalItems+=count($folderContent);
|
||||||
|
|||||||
Reference in New Issue
Block a user