Case counters are not working on Single Sign On Server

HOR-1055
Case counters are not working on Single Sign On Server

HOR-1055
Case counters are not working on Single Sign On Server
This commit is contained in:
Dheeyi William
2016-07-07 16:50:40 -04:00
parent 5e475952d3
commit 8850ecec43
3 changed files with 39 additions and 63 deletions

View File

@@ -12,6 +12,11 @@ switch ($action) {
case 'getProcess':
getProcess();
break;
/*----------------------------------********---------------------------------*/
case 'getAllCountersEnterprise':
getAllCountersEnterprise();
break;
/*----------------------------------********---------------------------------*/
default: //this is the starting call
getLoadTreeMenuData();
break;
@@ -271,6 +276,20 @@ function getProcess ()
echo G::json_encode( $response );
}
/*----------------------------------********---------------------------------*/
function getAllCountersEnterprise()
{
try {
$userUid = (isset($_SESSION['USER_LOGGED']) && $_SESSION['USER_LOGGED'] != '') ? $_SESSION['USER_LOGGED'] : null;
$lists = new \ProcessMaker\BusinessModel\Lists();
$response = $lists->getCounters($userUid);
echo G::json_encode($response);
} catch (\Exception $e) {
throw (new Exception($e->getMessage()));
}
}
/*----------------------------------********---------------------------------*/
function getAllCounters ()
{
$userUid = (isset( $_SESSION['USER_LOGGED'] ) && $_SESSION['USER_LOGGED'] != '') ? $_SESSION['USER_LOGGED'] : null;