Merge pull request #1472 from marcoAntonioNina/BUG-9872
BUG 9872 Reassign Multiple Case, submit and 'Processing...' IMPROVEMENT
This commit is contained in:
@@ -482,11 +482,13 @@ class Applications
|
||||
$aRow["APP_TAS_TITLE"] = $aRow["APPCVCR_APP_TAS_TITLE"];
|
||||
|
||||
//Current user
|
||||
if ($action != "to_reassign" ) {
|
||||
$aRow["USR_UID"] = $aRow["USRCR_USR_UID"];
|
||||
$aRow["USR_FIRSTNAME"] = $aRow["USRCR_USR_FIRSTNAME"];
|
||||
$aRow["USR_LASTNAME"] = $aRow["USRCR_USR_LASTNAME"];
|
||||
$aRow["USR_USERNAME"] = $aRow["USRCR_USR_USERNAME"];
|
||||
}
|
||||
}
|
||||
|
||||
//Unassigned user
|
||||
if (! isset( $aRow['APP_CURRENT_USER'] )) {
|
||||
|
||||
@@ -59,8 +59,8 @@ if (is_array( $aData )) {
|
||||
$rs->setFetchmode( ResultSet::FETCHMODE_ASSOC );
|
||||
$rs->next();
|
||||
$row = $rs->getRow();
|
||||
$aCase = $oCases->loadCaseInCurrentDelegation( $data->APP_UID );
|
||||
$oCases->reassignCase( $aCase['APP_UID'], $aCase['DEL_INDEX'], ($aCase['USR_UID'] != '' ? $aCase['USR_UID'] : $_SESSION['USER_LOGGED']), $data->APP_REASSIGN_USER_UID );
|
||||
//$aCase = $oCases->loadCaseInCurrentDelegation( $data->APP_UID );
|
||||
$oCases->reassignCase( $row['APP_UID'], $row['DEL_INDEX'], ($row['USR_UID'] != '' ? $row['USR_UID'] : $_SESSION['USER_LOGGED']), $data->APP_REASSIGN_USER_UID );
|
||||
$currentCasesReassigned ++;
|
||||
$casesReassignedCount ++;
|
||||
$serverResponse[] = array ('APP_REASSIGN_USER' => $data->APP_REASSIGN_USER,'APP_TITLE' => $data->APP_TITLE,'TAS_TITLE' => $data->APP_TAS_TITLE,'REASSIGNED_CASES' => $currentCasesReassigned
|
||||
|
||||
@@ -22,6 +22,7 @@ var storeCases;
|
||||
var storeReassignCases;
|
||||
var grid;
|
||||
var textJump;
|
||||
var ids = '';
|
||||
|
||||
function formatAMPM(date, initVal) {
|
||||
var hours = date.getHours();
|
||||
@@ -2154,6 +2155,7 @@ function reassign(){
|
||||
ids += rows[i].get('APP_UID') + "|" + rows[i].get('TAS_UID')+ "|" + rows[i].get('DEL_INDEX');
|
||||
}
|
||||
storeReassignCases.setBaseParam( 'APP_UIDS', ids);
|
||||
//storeReassignCases.setBaseParam( 'action', 'to_reassign');
|
||||
storeReassignCases.load();
|
||||
|
||||
newPopUp.show();
|
||||
|
||||
Reference in New Issue
Block a user