Merged in release/3.2.3 (pull request #6488)
HOR-4600 Approved-by: Paula Quispe <paula.quispe@processmaker.com> Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
@@ -252,6 +252,11 @@ class PmDynaform
|
|||||||
$dtFields = $json->queryInputData;
|
$dtFields = $json->queryInputData;
|
||||||
} else {
|
} else {
|
||||||
$dtFields = $this->getValuesDependentFields($json);
|
$dtFields = $this->getValuesDependentFields($json);
|
||||||
|
foreach ($dtFields as $keyF => $valueF) {
|
||||||
|
if (isset($this->fields["APP_DATA"][$keyF])) {
|
||||||
|
$dtFields[$keyF] = $this->fields["APP_DATA"][$keyF];
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$sql = G::replaceDataField($json->sql, $dtFields);
|
$sql = G::replaceDataField($json->sql, $dtFields);
|
||||||
if ($value === "suggest") {
|
if ($value === "suggest") {
|
||||||
|
|||||||
@@ -2304,6 +2304,7 @@ class WsBase
|
|||||||
);
|
);
|
||||||
|
|
||||||
//Execute triggers after routing
|
//Execute triggers after routing
|
||||||
|
$appFields = $oCase->loadCase($caseId);
|
||||||
$varTriggers .= $this->executeTriggerFromDerivate($caseId, $appFields["APP_DATA"], $appdel['TAS_UID'], 'ASSIGN_TASK', -2, 'AFTER', "-= After Derivation =-");
|
$varTriggers .= $this->executeTriggerFromDerivate($caseId, $appFields["APP_DATA"], $appdel['TAS_UID'], 'ASSIGN_TASK', -2, 'AFTER', "-= After Derivation =-");
|
||||||
|
|
||||||
$sFromName = "";
|
$sFromName = "";
|
||||||
|
|||||||
@@ -252,6 +252,11 @@ if ($timeZoneFailed) {
|
|||||||
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'login' . PATH_SEP . 'TimeZoneAlert', '', $arrayData, SYS_URI . 'login/authentication.php');
|
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'login' . PATH_SEP . 'TimeZoneAlert', '', $arrayData, SYS_URI . 'login/authentication.php');
|
||||||
|
|
||||||
G::RenderPage('publish');
|
G::RenderPage('publish');
|
||||||
|
|
||||||
|
// Destroy a significant value in session
|
||||||
|
global $G_FORM;
|
||||||
|
unset($_SESSION[$G_FORM->id]['USR_PASSWORD']);
|
||||||
|
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
/*----------------------------------********---------------------------------*/
|
/*----------------------------------********---------------------------------*/
|
||||||
|
|||||||
@@ -36,6 +36,8 @@ if (!isset($_POST)) {
|
|||||||
}
|
}
|
||||||
if (isset($_SESSION['sysLogin'])) {
|
if (isset($_SESSION['sysLogin'])) {
|
||||||
$_POST['form'] = $_SESSION['sysLogin'];
|
$_POST['form'] = $_SESSION['sysLogin'];
|
||||||
|
// Destroy variables already assigned to the global variable $_POST
|
||||||
|
unset($_SESSION['sysLogin']);
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once 'authentication.php';
|
require_once 'authentication.php';
|
||||||
|
|||||||
@@ -398,3 +398,6 @@ td.x-date-mp-sep {
|
|||||||
right: 0x !important;
|
right: 0x !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#startCaseTreePanel span:after, font:after {
|
||||||
|
content: "\200E";
|
||||||
|
}
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ Sprite modificado de http://ajaxbestiary.com/Labs/SilkSprite/
|
|||||||
|
|
||||||
.panel_headerBar___processmaker{background:url("/images/ext/gray/toolbar/bg.gif") #F0F0F0 !important}
|
.panel_headerBar___processmaker{background:url("/images/ext/gray/toolbar/bg.gif") #F0F0F0 !important}
|
||||||
|
|
||||||
.button_menu_ext{height:18px !important;}
|
.button_menu_ext{padding-left:20px !important;height:18px !important;}
|
||||||
.button_large_ext{padding-left:20px !important;height:32px !important;}
|
.button_large_ext{padding-left:20px !important;height:32px !important;}
|
||||||
.button_toolbar{padding-left:18px !important;height:18px !important;font-size:15px;cursor:pointer;margin:0 2px 1px 3px;line-height:25px}
|
.button_toolbar{padding-left:18px !important;height:18px !important;font-size:15px;cursor:pointer;margin:0 2px 1px 3px;line-height:25px}
|
||||||
.ss_accept{background-position:0 0 !important}
|
.ss_accept{background-position:0 0 !important}
|
||||||
|
|||||||
@@ -672,6 +672,6 @@ td.x-date-mp-sep {
|
|||||||
.ext-ie .x-menu-item-checked .x-menu-group-item .x-menu-item-icon {
|
.ext-ie .x-menu-item-checked .x-menu-group-item .x-menu-item-icon {
|
||||||
right: 0x !important;
|
right: 0x !important;
|
||||||
}
|
}
|
||||||
span:after, font:after {
|
#startCaseTreePanel span:after, font:after {
|
||||||
content: "\200E";
|
content: "\200E";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -220,6 +220,7 @@ Sprite modificado de http://ajaxbestiary.com/Labs/SilkSprite/
|
|||||||
background: url("/skins/neoclassic/images/ext/gray/toolbar/bg.gif") #f0f0f0 !important;
|
background: url("/skins/neoclassic/images/ext/gray/toolbar/bg.gif") #f0f0f0 !important;
|
||||||
}
|
}
|
||||||
.button_menu_ext {
|
.button_menu_ext {
|
||||||
|
padding-left: 20px !important;
|
||||||
height: 18px !important;
|
height: 18px !important;
|
||||||
}
|
}
|
||||||
.button_large_ext {
|
.button_large_ext {
|
||||||
|
|||||||
@@ -417,3 +417,6 @@ td.x-date-mp-sep {
|
|||||||
right: 0x !important;
|
right: 0x !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#startCaseTreePanel span:after, font:after {
|
||||||
|
content: "\200E";
|
||||||
|
}
|
||||||
|
|||||||
@@ -397,3 +397,6 @@ td.x-date-mp-sep {
|
|||||||
right: 0x !important;
|
right: 0x !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#startCaseTreePanel span:after, font:after {
|
||||||
|
content: "\200E";
|
||||||
|
}
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ Sprite modificado de http://ajaxbestiary.com/Labs/SilkSprite/
|
|||||||
|
|
||||||
.panel_headerBar___processmaker{background:url("/images/ext/gray/toolbar/bg.gif") #F0F0F0 !important}
|
.panel_headerBar___processmaker{background:url("/images/ext/gray/toolbar/bg.gif") #F0F0F0 !important}
|
||||||
|
|
||||||
.button_menu_ext{height:18px !important;}
|
.button_menu_ext{padding-left:20px !important;height:18px !important;}
|
||||||
.button_large_ext{padding-left:20px !important;height:32px !important;}
|
.button_large_ext{padding-left:20px !important;height:32px !important;}
|
||||||
.button_toolbar{padding-left:18px !important;height:18px !important;font-size:15px;cursor:pointer;margin:0 2px 1px 3px;line-height:25px}
|
.button_toolbar{padding-left:18px !important;height:18px !important;font-size:15px;cursor:pointer;margin:0 2px 1px 3px;line-height:25px}
|
||||||
.ss_accept{background-position:0 0 !important}
|
.ss_accept{background-position:0 0 !important}
|
||||||
|
|||||||
@@ -399,3 +399,6 @@ td.x-date-mp-sep {
|
|||||||
right: 0x !important;
|
right: 0x !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#startCaseTreePanel span:after, font:after {
|
||||||
|
content: "\200E";
|
||||||
|
}
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ Sprite modificado de http://ajaxbestiary.com/Labs/SilkSprite/
|
|||||||
|
|
||||||
.panel_headerBar___processmaker{background:url("/images/ext/gray/toolbar/bg.gif") #F0F0F0 !important}
|
.panel_headerBar___processmaker{background:url("/images/ext/gray/toolbar/bg.gif") #F0F0F0 !important}
|
||||||
|
|
||||||
.button_menu_ext{height:18px !important;}
|
.button_menu_ext{padding-left:20px !important;height:18px !important;}
|
||||||
.button_large_ext{padding-left:20px !important;height:32px !important;}
|
.button_large_ext{padding-left:20px !important;height:32px !important;}
|
||||||
.button_toolbar{padding-left:18px !important;height:18px !important;font-size:15px;cursor:pointer;margin:0 2px 1px 3px;line-height:25px}
|
.button_toolbar{padding-left:18px !important;height:18px !important;font-size:15px;cursor:pointer;margin:0 2px 1px 3px;line-height:25px}
|
||||||
.ss_accept{background-position:0 0 !important}
|
.ss_accept{background-position:0 0 !important}
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ use ProcessMaker\BusinessModel\Lists;
|
|||||||
use G;
|
use G;
|
||||||
use Criteria;
|
use Criteria;
|
||||||
use UsersPeer;
|
use UsersPeer;
|
||||||
|
use AppDelegation;
|
||||||
use AppDelegationPeer;
|
use AppDelegationPeer;
|
||||||
use AppDelayPeer;
|
use AppDelayPeer;
|
||||||
use ProcessMaker\Core\System;
|
use ProcessMaker\Core\System;
|
||||||
@@ -1076,28 +1077,30 @@ class Light
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* claim case
|
* Claim case
|
||||||
*
|
*
|
||||||
* @param $userUid
|
* @param string $userUid
|
||||||
* @param $Fields
|
* @param string $appUid
|
||||||
* @param $type
|
* @param integer $delIndex
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
public function claimCaseUser($userUid, $sAppUid)
|
public function claimCaseUser($userUid, $appUid, $delIndex = null)
|
||||||
{
|
{
|
||||||
$response = array("status" => "fail");
|
$response = ['status' => 'fail'];
|
||||||
$oCase = new Cases();
|
$case = new Cases();
|
||||||
$iDelIndex = $oCase->getCurrentDelegation($sAppUid, '', true);
|
$appDelegation = new AppDelegation();
|
||||||
|
if (empty($delIndex)) {
|
||||||
|
$delIndex = $case->getCurrentDelegation($appUid, '', true);
|
||||||
|
}
|
||||||
|
|
||||||
$oAppDelegation = new \AppDelegation();
|
$delegation = $appDelegation->Load($appUid, $delIndex);
|
||||||
$aDelegation = $oAppDelegation->load($sAppUid, $iDelIndex);
|
|
||||||
|
|
||||||
//if there are no user in the delegation row, this case is still in selfservice
|
//if there are no user in the delegation row, this case is still in selfservice
|
||||||
if ($aDelegation['USR_UID'] == "") {
|
if (empty($delegation['USR_UID'])) {
|
||||||
$oCase->setCatchUser($sAppUid, $iDelIndex, $userUid);
|
$case->setCatchUser($appUid, $delIndex, $userUid);
|
||||||
$response = array("status" => "ok");
|
$response['status'] = 'ok';
|
||||||
} else {
|
|
||||||
//G::SendMessageText( G::LoadTranslation( 'ID_CASE_ALREADY_DERIVATED' ), 'error' );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $response;
|
return $response;
|
||||||
|
|||||||
@@ -1490,12 +1490,12 @@ class Light extends Api
|
|||||||
* @access protected
|
* @access protected
|
||||||
* @class AccessControl {@permission PM_CASES}
|
* @class AccessControl {@permission PM_CASES}
|
||||||
*/
|
*/
|
||||||
public function claimCaseUser($app_uid)
|
public function claimCaseUser($app_uid, $del_index = null)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$userUid = $this->getUserId();
|
$userUid = $this->getUserId();
|
||||||
$oMobile = new BusinessModelLight();
|
$mobile = new BusinessModelLight();
|
||||||
$response = $oMobile->claimCaseUser($userUid, $app_uid);
|
$response = $mobile->claimCaseUser($userUid, $app_uid, $del_index);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
throw (new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage()));
|
throw (new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage()));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -328,7 +328,7 @@ Ext.onReady(function() {
|
|||||||
xtype : 'button',
|
xtype : 'button',
|
||||||
id : 'starCaseButton',
|
id : 'starCaseButton',
|
||||||
disabled : true,
|
disabled : true,
|
||||||
iconCls : "ICON_CASES_START_CASE",
|
iconCls : "button_menu_ext ICON_CASES_START_CASE",
|
||||||
text : TRANSLATIONS.ID_TITLE_START_CASE,
|
text : TRANSLATIONS.ID_TITLE_START_CASE,
|
||||||
autoWidth : true,
|
autoWidth : true,
|
||||||
handler : function() {
|
handler : function() {
|
||||||
|
|||||||
@@ -389,7 +389,7 @@ Ext.onReady(function(){
|
|||||||
id: 'deatachAction',
|
id: 'deatachAction',
|
||||||
disabled: true,
|
disabled: true,
|
||||||
text: _('ID_OPEN_IN_A_NEW_WINDOW'),
|
text: _('ID_OPEN_IN_A_NEW_WINDOW'),
|
||||||
iconCls: 'ss_sprite ss_application_form',
|
iconCls: 'button_menu_ext ss_sprite ss_application_form',
|
||||||
handler: function(){
|
handler: function(){
|
||||||
if( Ext.getCmp('debugPanelTabs').getActiveTab().id === 'debugVariables' ){
|
if( Ext.getCmp('debugPanelTabs').getActiveTab().id === 'debugVariables' ){
|
||||||
var i,
|
var i,
|
||||||
|
|||||||
@@ -438,7 +438,7 @@ Ext.onReady(function(){
|
|||||||
pressed: false,
|
pressed: false,
|
||||||
enableToggle:true,
|
enableToggle:true,
|
||||||
text: ' '+_('ID_CASES_NOTES'),
|
text: ' '+_('ID_CASES_NOTES'),
|
||||||
iconCls: 'ICON_CASES_NOTES',
|
iconCls: 'button_menu_ext ICON_CASES_NOTES',
|
||||||
tooltip: {
|
tooltip: {
|
||||||
title: _('ID_CASES_NOTES'),
|
title: _('ID_CASES_NOTES'),
|
||||||
text:_('ID_SHOW_CASES_NOTES')
|
text:_('ID_SHOW_CASES_NOTES')
|
||||||
|
|||||||
@@ -703,7 +703,6 @@ Ext.onReady(function(){
|
|||||||
var arrayContextMenuOption = [
|
var arrayContextMenuOption = [
|
||||||
{
|
{
|
||||||
text: _("ID_EDIT"),
|
text: _("ID_EDIT"),
|
||||||
iconCls: "button_menu_ext",
|
|
||||||
icon: "/images/pencil.png",
|
icon: "/images/pencil.png",
|
||||||
handler: editProcess
|
handler: editProcess
|
||||||
},
|
},
|
||||||
@@ -720,7 +719,6 @@ Ext.onReady(function(){
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: _("ID_DELETE"),
|
text: _("ID_DELETE"),
|
||||||
iconCls: "button_menu_ext",
|
|
||||||
icon: "/images/delete_16.png",
|
icon: "/images/delete_16.png",
|
||||||
handler: deleteProcess
|
handler: deleteProcess
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user