BUG 9006 "The changes made by process supervisors to fields in..." SOLVED
- The changes made by process supervisors to fields in DynaForms are not recorded in the Change Log - Changes made by process supervisors to fields in DynaForms, may be viewed by a user if this is defined in "process permissions". with this the user will see the "Change Log" of a case. - Additionally the following error was corrected: > Fatal error: Call to undefined method Ajax::dynaformViewFromHistory() in processmaker/workflow/engine/methods/cases/ajaxListener.php on line 42 > The error was corrected by adding code to complete the "Change Log" in the option "View"
This commit is contained in:
@@ -699,7 +699,7 @@ class Ajax
|
|||||||
showDynaformHistoryGlobal.idHistory = "";
|
showDynaformHistoryGlobal.idHistory = "";
|
||||||
showDynaformHistoryGlobal.dynDate = "";
|
showDynaformHistoryGlobal.dynDate = "";
|
||||||
|
|
||||||
function showDynaformHistory(idDin, idHistory,dynDate) {
|
function showDynaformHistory(idDin, idHistory, dynDate) {
|
||||||
//!showDynaformHistoryGlobal
|
//!showDynaformHistoryGlobal
|
||||||
showDynaformHistoryGlobal.idDin = showDynaformHistoryGlobal.idDin;
|
showDynaformHistoryGlobal.idDin = showDynaformHistoryGlobal.idDin;
|
||||||
showDynaformHistoryGlobal.idHistory = showDynaformHistoryGlobal.idHistory;
|
showDynaformHistoryGlobal.idHistory = showDynaformHistoryGlobal.idHistory;
|
||||||
@@ -726,4 +726,81 @@ class Ajax
|
|||||||
$result->msg = $e->getMessage();
|
$result->msg = $e->getMessage();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function dynaformViewFromHistory()
|
||||||
|
{
|
||||||
|
?>
|
||||||
|
|
||||||
|
<link rel="stylesheet" type="text/css" href="/css/classic.css" />
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
//!Code that simulated reload library javascript maborak
|
||||||
|
var leimnud = {};
|
||||||
|
leimnud.exec = "";
|
||||||
|
leimnud.fix = {};
|
||||||
|
leimnud.fix.memoryLeak = "";
|
||||||
|
leimnud.browser = {};
|
||||||
|
leimnud.browser.isIphone = "";
|
||||||
|
leimnud.iphone = {};
|
||||||
|
leimnud.iphone.make = function () {};
|
||||||
|
function ajax_function(ajax_server, funcion, parameters, method)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
//!
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
global $G_PUBLISH;
|
||||||
|
|
||||||
|
$_POST["HISTORY_ID"] = $_REQUEST["HISTORY_ID"];
|
||||||
|
$_POST["DYN_UID"] = $_REQUEST["DYN_UID"];
|
||||||
|
|
||||||
|
$G_PUBLISH = new Publisher();
|
||||||
|
$FieldsHistory = unserialize($_SESSION["HISTORY_DATA"]);
|
||||||
|
$Fields["APP_DATA"] = $FieldsHistory[$_POST["HISTORY_ID"]]; //isset($FieldsHistory[$_POST["HISTORY_ID"]])? $FieldsHistory[$_POST["HISTORY_ID"]] : "";
|
||||||
|
$Fields["APP_DATA"]["__DYNAFORM_OPTIONS"]["PREVIOUS_STEP_LABEL"] = "";
|
||||||
|
$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");
|
||||||
|
?>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
|
||||||
|
<?php
|
||||||
|
global $G_FORM;
|
||||||
|
?>
|
||||||
|
|
||||||
|
function loadForm_<?php echo $G_FORM->id; ?>(parametro1)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
G::RenderPage("publish", "raw");
|
||||||
|
?>
|
||||||
|
|
||||||
|
<style type="text/css">
|
||||||
|
html {
|
||||||
|
color: black !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
color: black !important;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
|
||||||
|
<?php
|
||||||
|
global $G_FORM;
|
||||||
|
?>
|
||||||
|
|
||||||
|
function loadForm_<?php echo $G_FORM->id; ?>(parametro1)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -65,7 +65,7 @@
|
|||||||
<td width="20%">{dynDate}</td>
|
<td width="20%">{dynDate}</td>
|
||||||
<td width="20%">{dynUser}</td>
|
<td width="20%">{dynUser}</td>
|
||||||
<td width="20%"><div class="userGroupLink"><a href="javascript:toggleTable('{tablename}');">{dynChanges}</a></div></td>
|
<td width="20%"><div class="userGroupLink"><a href="javascript:toggleTable('{tablename}');">{dynChanges}</a></div></td>
|
||||||
<td width="10%"><div class="userGroupLink"><a href="javascript:showDynaformHistory('{dynUID}','{tablename}');">{viewForm}</a></div></td>
|
<td width="10%"><div class="userGroupLink"><a href="javascript:showDynaformHistory('{dynUID}', '{tablename}', '{dynDate}');">{viewForm}</a></div></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
Reference in New Issue
Block a user