Merged in bugfix/PMCORE-4131 (pull request #8721)

PMCORE-4131

Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
Paula Quispe
2023-02-13 16:57:41 +00:00
committed by Julio Cesar Laura Avendaño
2 changed files with 10 additions and 15 deletions

View File

@@ -54,32 +54,25 @@ switch ($_POST['action']) {
$start = isset($_REQUEST['start']) ? $_REQUEST['start'] : 0;
$limit = isset($_REQUEST['limit']) ? $_REQUEST['limit'] : $limit_size;
$filter = isset($_REQUEST['textFilter']) ? $_REQUEST['textFilter'] : '';
$sortField = isset($_REQUEST["sort"]) ? $_REQUEST["sort"] : "";
$sortDir = isset($_REQUEST["dir"]) ? $_REQUEST["dir"] : "";
global $RBAC;
$tasks = new TaskUser();
$aTask = $tasks->getCountAllTaksByGroups();
$task = $tasks->getCountAllTaksByGroups();
require_once PATH_CONTROLLERS . 'adminProxy.php';
$uxList = adminProxy::getUxTypesList();
$data = $groupWf->getAllGroup($start, $limit, $filter, $sortField, $sortDir, true);
$result = $data['rows'];
$totalRows = 0;
$arrData = array();
$arrData = [];
foreach ($result as $results) {
$totalRows++;
$results['CON_VALUE'] = str_replace(array("<", ">"
), array("&lt;", "&gt;"
), $results['GRP_TITLE']);
$results['GRP_TASKS'] = isset($aTask[$results['GRP_UID']]) ? $aTask[$results['GRP_UID']] : 0;
$results['CON_VALUE'] = str_replace(["<", ">"], ["&lt;", "&gt;"], $results['GRP_TITLE']);
$results['GRP_TASKS'] = isset($task[$results['GRP_UID']]) ? $task[$results['GRP_UID']] : 0;
$arrData[] = $results;
}
$result = new StdClass();
$result->success = true;
$result->groups = $arrData;

View File

@@ -413,12 +413,14 @@ NewGroupWindow = function(){
//Load Grid By Default
GridByDefault = function () {
searchText.reset();
infoGrid.store.load();
store.setBaseParam('textFilter', '');
store.load();
};
//Do Search Function
DoSearch = function () {
infoGrid.store.load({params: {textFilter: searchText.getValue()}});
store.setBaseParam('textFilter', searchText.getValue());
store.load();
};
//Close Popup Window