Merge branch 'master' of git://github.com/colosa/processmaker into BUG-0000
This commit is contained in:
@@ -25,11 +25,11 @@
|
||||
$actionAjax = isset( $_REQUEST['actionAjax'] ) ? $_REQUEST['actionAjax'] : null;
|
||||
|
||||
if ($actionAjax == 'messageHistoryGridList_JXP') {
|
||||
|
||||
|
||||
if (!isset($_REQUEST['start'])) {
|
||||
$_REQUEST['start'] = 0;
|
||||
}
|
||||
|
||||
|
||||
if (!isset($_REQUEST['limit'])) {
|
||||
$_REQUEST['limit'] = 20;
|
||||
}
|
||||
@@ -46,13 +46,44 @@ if ($actionAjax == 'messageHistoryGridList_JXP') {
|
||||
$result = new stdClass();
|
||||
$aProcesses = Array ();
|
||||
|
||||
foreach ($appMessageArray as $index => $value) {
|
||||
if ($appMessageArray[$index]['APP_MSG_SHOW_MESSAGE'] == 1) {
|
||||
$appMessageArray[$index]['ID_MESSAGE'] = $appMessageArray[$index]['APP_UID'] . '_' . $appMessageArray[$index]['APP_MSG_UID'];
|
||||
$aProcesses[] = $appMessageArray[$index];
|
||||
|
||||
$proUid = $_SESSION['PROCESS'];
|
||||
$appUid = $_SESSION['APPLICATION'];
|
||||
$tasUid = $_SESSION['TASK'];
|
||||
$usrUid = $_SESSION['USER_LOGGED'];
|
||||
|
||||
$respView = $oCase->getAllObjectsFrom( $proUid, $appUid, $tasUid, $usrUid, 'VIEW' );
|
||||
$respBlock = $oCase->getAllObjectsFrom( $proUid, $appUid, $tasUid, $usrUid, 'BLOCK' );
|
||||
$respResend = $oCase->getAllObjectsFrom( $proUid, $appUid, $tasUid, $usrUid, 'RESEND' );
|
||||
|
||||
$delIndex = array();
|
||||
$respMess = "";
|
||||
if (count($respView['MSGS_HISTORY'])>0) {
|
||||
$respMess = $respView['MSGS_HISTORY']['PERMISSION'];
|
||||
$delIndex = $respView['MSGS_HISTORY']['DEL_INDEX'];
|
||||
} else {
|
||||
if (count($respBlock['MSGS_HISTORY'])>0) {
|
||||
$respMess = $respBlock['MSGS_HISTORY']['PERMISSION'];
|
||||
$delIndex = $respView['MSGS_HISTORY']['DEL_INDEX'];
|
||||
} else {
|
||||
if (count($respResend['MSGS_HISTORY'])>0) {
|
||||
$respMess = $respResend['MSGS_HISTORY']['PERMISSION'];
|
||||
$delIndex = $respView['MSGS_HISTORY']['DEL_INDEX'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
foreach ($appMessageArray as $index => $value) {
|
||||
if (($appMessageArray[$index]['APP_MSG_SHOW_MESSAGE'] == 1 && $respMess != 'BLOCK' ) &&
|
||||
($appMessageArray[$index]['DEL_INDEX'] == 0 || in_array($appMessageArray[$index]['DEL_INDEX'], $delIndex ))) {
|
||||
$appMessageArray[$index]['ID_MESSAGE'] = $appMessageArray[$index]['APP_UID'] . '_' . $appMessageArray[$index]['APP_MSG_UID'];
|
||||
if ($respMess == 'BLOCK' || $respMess == '') {
|
||||
$appMessageArray[$index]['APP_MSG_BODY'] = "";
|
||||
}
|
||||
$aProcesses[] = array_merge($appMessageArray[$index], array('MSGS_HISTORY' => $respMess));
|
||||
}
|
||||
}
|
||||
|
||||
$totalCount = 0;
|
||||
foreach ($appMessageCountArray as $index => $value) {
|
||||
if ($appMessageCountArray[$index]['APP_MSG_SHOW_MESSAGE'] == 1) {
|
||||
|
||||
@@ -42,10 +42,11 @@ if ($access != 1) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (isset( $_POST['form'] ))
|
||||
if (isset( $_POST['form'] )) {
|
||||
$sValue = $_POST['form']; //For old processmap
|
||||
else
|
||||
} else {
|
||||
$sValue = $_POST; //For new processmap EXtjs
|
||||
}
|
||||
|
||||
|
||||
list ($iRelation, $sUserGroup) = explode( '|', $sValue['GROUP_USER'] );
|
||||
@@ -69,8 +70,7 @@ switch ($sValue['OP_OBJ_TYPE']) {
|
||||
}
|
||||
require_once 'classes/model/ObjectPermission.php';
|
||||
$oOP = new ObjectPermission();
|
||||
$aData = array ('OP_UID' => G::generateUniqueID(),'PRO_UID' => $sValue['PRO_UID'],'TAS_UID' => $sValue['TAS_UID'],'USR_UID' => (string) $sUserGroup,'OP_USER_RELATION' => $iRelation,'OP_TASK_SOURCE' => $sValue['OP_TASK_SOURCE'],'OP_PARTICIPATE' => $sValue['OP_PARTICIPATE'],'OP_OBJ_TYPE' => $sValue['OP_OBJ_TYPE'],'OP_OBJ_UID' => $sObjectUID,'OP_ACTION' => $sValue['OP_ACTION'],'OP_CASE_STATUS' => $sValue['OP_CASE_STATUS']
|
||||
);
|
||||
$aData = array ('OP_UID' => G::generateUniqueID(),'PRO_UID' => $sValue['PRO_UID'],'TAS_UID' => $sValue['TAS_UID'],'USR_UID' => (string) $sUserGroup,'OP_USER_RELATION' => $iRelation,'OP_TASK_SOURCE' => $sValue['OP_TASK_SOURCE'],'OP_PARTICIPATE' => $sValue['OP_PARTICIPATE'],'OP_OBJ_TYPE' => $sValue['OP_OBJ_TYPE'],'OP_OBJ_UID' => $sObjectUID,'OP_ACTION' => $sValue['OP_ACTION'],'OP_CASE_STATUS' => $sValue['OP_CASE_STATUS']);
|
||||
$oOP->fromArray( $aData, BasePeer::TYPE_FIELDNAME );
|
||||
$oOP->save();
|
||||
G::LoadClass( 'processMap' );
|
||||
|
||||
@@ -49,14 +49,14 @@ function skinList ()
|
||||
if (isset( $_REQUEST['activeskin'] )) {
|
||||
$wildcard = '@';
|
||||
}
|
||||
|
||||
|
||||
$classicSkin = '';
|
||||
if (defined('PARTNER_FLAG')) {
|
||||
$classicSkin = '00000000000000000000000000000001';
|
||||
}
|
||||
|
||||
|
||||
foreach ($skinList['skins'] as $key => $value) {
|
||||
if ($value['SKIN_ID'] != $classicSkin) {
|
||||
if (!isset($value['SKIN_ID']) || $value['SKIN_ID'] != $classicSkin) {
|
||||
if ($value['SKIN_FOLDER_ID'] != 'simplified' && $value['SKIN_FOLDER_ID'] != 'uxs' && $value['SKIN_FOLDER_ID'] != 'uxmodern') {
|
||||
if ($skinList['currentSkin'] == $value['SKIN_FOLDER_ID']) {
|
||||
$value['SKIN_STATUS'] = $wildcard . G::LoadTranslation( 'ID_ACTIVE' );
|
||||
|
||||
Reference in New Issue
Block a user