Merge remote-tracking branch 'origin/feature/HOR-3274' into feature/HOR-3559
This commit is contained in:
@@ -157,6 +157,7 @@ $G_PUBLISH->AddContent( 'template', '', '', '', $oTemplatePower );
|
||||
|
||||
$oCase = new Cases();
|
||||
$oStep = new Step();
|
||||
$bmWebEntry = new \ProcessMaker\BusinessModel\WebEntry;
|
||||
|
||||
$Fields = $oCase->loadCase( $_SESSION['APPLICATION'] );
|
||||
$Fields['APP_DATA'] = array_merge( $Fields['APP_DATA'], G::getSystemConstants() );
|
||||
@@ -291,6 +292,9 @@ try {
|
||||
if (isset( $oProcessFieds['PRO_SHOW_MESSAGE'] )) {
|
||||
$noShowTitle = $oProcessFieds['PRO_SHOW_MESSAGE'];
|
||||
}
|
||||
if ($bmWebEntry->isTaskAWebEntry($_SESSION['TASK'])) {
|
||||
$noShowTitle = 1;
|
||||
}
|
||||
|
||||
switch ($_GET['TYPE']) {
|
||||
case 'DYNAFORM':
|
||||
@@ -1097,6 +1101,27 @@ try {
|
||||
$aFields["TASK"][$sKey]["NEXT_TASK"]["TAS_TITLE"] = G::LoadTranslation("ID_ROUTE_TO_TASK_INTERMEDIATE_CATCH_MESSAGE_EVENT");
|
||||
}
|
||||
|
||||
//SKIP ASSIGN SCREEN
|
||||
if (!empty($aFields['TASK'][1])) {
|
||||
$currentTask = $aFields['TASK'][1];
|
||||
$isWebEntry = $bmWebEntry->isTaskAWebEntry($currentTask['TAS_UID']);
|
||||
if ($isWebEntry) {
|
||||
$tplFile = 'webentry/cases_ScreenDerivation';
|
||||
$caseId = $currentTask['APP_UID'];
|
||||
$delIndex = $currentTask['DEL_INDEX'];
|
||||
$derivationResponse = PMFDerivateCase($caseId, $delIndex, true);
|
||||
if ($derivationResponse) {
|
||||
$webEntryUrl = $bmWebEntry->getCallbackUrlByTask($currentTask['TAS_UID']);
|
||||
$delegationData = $Fields['APP_DATA'];
|
||||
$delegationData['_DELEGATION_DATA'] = $aFields['TASK'];
|
||||
$delegationData['_DELEGATION_MESSAGE'] = $bmWebEntry->getDelegationMessage($delegationData);
|
||||
$webEntryUrlEvaluated = \G::replaceDataField($webEntryUrl, $delegationData);
|
||||
}
|
||||
$aFields['derivationResponse'] = $derivationResponse;
|
||||
$aFields['webEntryUrlEvaluated'] = $webEntryUrlEvaluated;
|
||||
}
|
||||
}
|
||||
|
||||
$G_PUBLISH->AddContent( 'smarty', $tplFile, '', '', $aFields );
|
||||
/*
|
||||
if (isset( $aFields['TASK'][1]['NEXT_TASK']['USER_ASSIGNED'])){
|
||||
|
||||
Reference in New Issue
Block a user