BUG-15020 Pagination toolbar is not refreshing when when... SOLVED

- The search was done locally.
- the criteria was added in order to make the search by filename and user.
This commit is contained in:
Marco Antonio Nina
2014-05-23 10:53:38 -04:00
parent b5e9beefa2
commit bc3a75c852
3 changed files with 89 additions and 15 deletions

View File

@@ -7,6 +7,8 @@ if (! isset ($_SESSION ['USER_LOGGED'])) {
die ();
}
$search = isset($_REQUEST ['search']) ? $_REQUEST ['search'] : null;
if (isset ($_REQUEST ['action']) && isset($_REQUEST['sort']) && isset($_REQUEST['dir'])) {
sortContent();
}
@@ -198,7 +200,8 @@ function expandNode()
$limit,
$start,
$user,
true
true,
$search
);
$folderContent=$folderContentObj['documents'];
@@ -499,7 +502,10 @@ function sortContent()
$folderListObj = $oPMFolder->getFolderList(
($_POST["node"] != "root")? (($_POST["node"] == "NA")? "" : $_POST["node"]) : $rootFolder,
$limit,
$start
$start,
$direction,
(isset($_POST["sort"]))? $_POST["sort"]:"appDocCreateDate",
$search
);
$folderList=$folderListObj['folders'];
@@ -522,7 +528,8 @@ function sortContent()
$user,
true,
$direction,
(isset($_POST["sort"]))? $_POST["sort"]:"appDocCreateDate"
(isset($_POST["sort"]))? $_POST["sort"]:"appDocCreateDate",
$search
);
$folderContent = $folderContentObj['documents'];