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:
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user