Merge branch 'master' of bitbucket.org:colosa/processmaker into PM-939
This commit is contained in:
@@ -990,10 +990,11 @@ class Cases
|
||||
if (isset($Fields["APP_STATUS"]) && $Fields["APP_STATUS"] == "COMPLETED") {
|
||||
if (isset($Fields['CURRENT_USER_UID'])) {
|
||||
$Fields['USR_UID'] = $Fields['CURRENT_USER_UID'];
|
||||
/*This "list" code is discussed to operate with sub-processes. It should adjust the code for operation with sub-processes.
|
||||
$listCompleted = new ListCompleted();
|
||||
$listCompleted->create($Fields);
|
||||
$listMyInbox = new ListMyInbox();
|
||||
$listMyInbox->refresh($Fields);
|
||||
$listMyInbox->refresh($Fields);*/
|
||||
}
|
||||
}
|
||||
$oApp->update($Fields);
|
||||
|
||||
@@ -75,7 +75,7 @@ class pmDynaform
|
||||
exit();
|
||||
}
|
||||
|
||||
public function printEdit($pm_run_outside_main_app, $application, $headData)
|
||||
public function printEdit($pm_run_outside_main_app, $application, $headData, $step_mode = 'EDIT')
|
||||
{
|
||||
ob_clean();
|
||||
|
||||
@@ -101,6 +101,7 @@ class pmDynaform
|
||||
$file = str_replace("{DYNAFORMNAME}", $this->record["PRO_UID"] . "_" . $this->record["DYN_UID"], $file);
|
||||
$file = str_replace("{APP_UID}", $application, $file);
|
||||
$file = str_replace("{PRJ_UID}", $this->app_data["PROCESS"], $file);
|
||||
$file = str_replace("{STEP_MODE}", $step_mode, $file);
|
||||
$file = str_replace("{WORKSPACE}", $this->app_data["SYS_SYS"], $file);
|
||||
$file = str_replace("{credentials}", json_encode($clientToken), $file);
|
||||
echo $file;
|
||||
|
||||
@@ -37,6 +37,7 @@ $(window).load(function () {
|
||||
}
|
||||
|
||||
var data = jsondata;
|
||||
data.items[0].mode = step_mode.toLowerCase();
|
||||
window.project = new PMDynaform.core.Project({
|
||||
data: data,
|
||||
keys: {
|
||||
|
||||
@@ -851,7 +851,15 @@ class Ajax
|
||||
$Fields["APP_DATA"]["__DYNAFORM_OPTIONS"]["NEXT_STEP_LABEL"] = "";
|
||||
$Fields["APP_DATA"]["__DYNAFORM_OPTIONS"]["NEXT_STEP"] = "#";
|
||||
$Fields["APP_DATA"]["__DYNAFORM_OPTIONS"]["NEXT_ACTION"] = "return false;";
|
||||
$G_PUBLISH->AddContent("dynaform", "xmlform", $_SESSION["PROCESS"] . "/" . $_POST["DYN_UID"], "", $Fields["APP_DATA"], "", "", "view");
|
||||
G::LoadClass('pmDynaform');
|
||||
$a = new pmDynaform($_REQUEST['DYN_UID'], $Fields['APP_DATA']);
|
||||
if ($a->isResponsive()) {
|
||||
$a->app_data["PROCESS"] = $_SESSION['PROCESS'];
|
||||
$a->app_data["SYS_SYS"] = SYS_SYS;
|
||||
$a->printView((!isset($_SESSION["PM_RUN_OUTSIDE_MAIN_APP"])) ? "true" : "false", $_SESSION['APPLICATION']);
|
||||
} else {
|
||||
$G_PUBLISH->AddContent("dynaform", "xmlform", $_SESSION["PROCESS"] . "/" . $_POST["DYN_UID"], "", $Fields["APP_DATA"], "", "", "view");
|
||||
}
|
||||
?>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
@@ -264,7 +264,7 @@ try {
|
||||
G::LoadClass('pmDynaform');
|
||||
$a = new pmDynaform($_GET['UID'], $Fields['APP_DATA']);
|
||||
if ($a->isResponsive()) {
|
||||
$a->printEdit((!isset($_SESSION["PM_RUN_OUTSIDE_MAIN_APP"])) ? "true" : "false", $_SESSION['APPLICATION'], $array);
|
||||
$a->printEdit((!isset($_SESSION["PM_RUN_OUTSIDE_MAIN_APP"])) ? "true" : "false", $_SESSION['APPLICATION'], $array, $oStep->getStepMode());
|
||||
} else {
|
||||
$G_PUBLISH->AddContent('dynaform', 'xmlform', $_SESSION['PROCESS'] . '/' . $_GET['UID'], '', $Fields['APP_DATA'], 'cases_SaveData?UID=' . $_GET['UID'] . '&APP_UID=' . $_SESSION['APPLICATION'], '', (strtolower($oStep->getStepMode()) != 'edit' ? strtolower($oStep->getStepMode()) : ''));
|
||||
}
|
||||
|
||||
@@ -74,7 +74,9 @@ class Trigger
|
||||
} else {
|
||||
if ($aRow['TRI_PARAM'] != '' && $aRow['TRI_PARAM'] != 'PRIVATE') {
|
||||
$aRow['TRI_PARAM'] = unserialize($aRow['TRI_PARAM']);
|
||||
$aRow['TRI_PARAM'] = \G::json_encode($aRow['TRI_PARAM']);
|
||||
|
||||
unset($aRow["TRI_PARAM"]["hash"]);
|
||||
unset($aRow["TRI_PARAM"]["params"]["TRI_WEBBOT"]);
|
||||
}
|
||||
}
|
||||
$triggersArray[] = array_change_key_case($aRow, CASE_LOWER);
|
||||
|
||||
@@ -611,9 +611,6 @@ class BpmnWorkflow extends Project\Bpmn
|
||||
}
|
||||
$activities = $projectData['diagrams']['0']['activities'];
|
||||
foreach ($activities as $value) {
|
||||
if (empty($value['act_name'])) {
|
||||
throw new \Exception("For activity: {$value['act_uid']} `act_name` is required but missing.");
|
||||
}
|
||||
if (empty($value['act_type'])) {
|
||||
throw new \Exception("For activity: {$value['act_uid']} `act_type` is required but missing.");
|
||||
}
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
var __DynaformName__ = '{DYNAFORMNAME}';
|
||||
var app_uid = '{APP_UID}';
|
||||
var prj_uid = '{PRJ_UID}';
|
||||
var step_mode = '{STEP_MODE}';
|
||||
var workspace = '{WORKSPACE}';
|
||||
var credentials = {credentials};
|
||||
</script>
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
var credentials = {credentials};
|
||||
$(window).load(function () {
|
||||
var data = jsondata;
|
||||
data.items[0].mode = "view";
|
||||
window.project = new PMDynaform.core.Project({
|
||||
data: data,
|
||||
keys: {
|
||||
|
||||
@@ -447,6 +447,7 @@ Ext.onReady(function(){
|
||||
id: "mnuGenerateBpmn",
|
||||
text: _("ID_GENERATE_BPMN_PROJECT"),
|
||||
iconCls: "button_menu_ext ss_sprite ss_page_white_go",
|
||||
hidden: true,
|
||||
handler: function ()
|
||||
{
|
||||
generateBpmn();
|
||||
|
||||
Reference in New Issue
Block a user