BUG 7341 Error al mostrar la informacion de Dynaforms
This issue was fixed, now the fields are still there
This commit is contained in:
@@ -709,31 +709,29 @@ var showDynaforms = function() {
|
|||||||
{
|
{
|
||||||
oPanel2 = new leimnud.module.panel();
|
oPanel2 = new leimnud.module.panel();
|
||||||
oPanel2.options = {
|
oPanel2.options = {
|
||||||
size :{w:600,h:400},
|
size :{w:800,h:600},
|
||||||
position:{x:0,y:0,center:true},
|
position:{x:0,y:0,center:true},
|
||||||
title :'',
|
title :'',
|
||||||
theme :'processmaker',
|
theme :'processmaker',
|
||||||
statusBar:true,
|
statusBar:false,
|
||||||
control :{resize:true,roll:false},
|
control :{resize:false,roll:false},
|
||||||
fx :{modal:true,opacity:true,blinkToFront:true,fadeIn:false}
|
fx :{modal:true,opacity:true,blinkToFront:true,fadeIn:false}
|
||||||
};
|
};
|
||||||
oPanel2.events = {
|
oPanel2.events = {
|
||||||
remove: function() {delete(oPanel2);}.extend(this)
|
remove: function() {delete(oPanel2);}.extend(this)
|
||||||
};
|
};
|
||||||
oPanel2.make();
|
oPanel2.make();
|
||||||
oPanel2.loader.show();
|
|
||||||
var oRPC = new leimnud.module.rpc.xmlhttp({
|
var iframe=document.createElement('iframe');
|
||||||
url : 'cases_Ajax',
|
iframe.setAttribute('id','dynaFormIframe');
|
||||||
args: 'action=showDynaform&DYN_UID='+DYN_UID
|
iframe.src = 'cases_Ajax?action=showDynaform&DYN_UID='+DYN_UID;
|
||||||
});
|
iframe.style.border='0px';
|
||||||
oRPC.callback = function(rpc){
|
iframe.style.width='790';
|
||||||
oPanel2.loader.hide();
|
iframe.style.height=_client.height-20;
|
||||||
var scs=rpc.xmlhttp.responseText.extractScript();
|
oPanel2.addContent(iframe);
|
||||||
oPanel2.addContent(rpc.xmlhttp.responseText);
|
|
||||||
scs.evalScript();scs.evalScript();
|
|
||||||
}.extend(this);
|
|
||||||
oRPC.make();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function showDynaformHistory(DYN_UID,HISTORY_ID)
|
function showDynaformHistory(DYN_UID,HISTORY_ID)
|
||||||
{
|
{
|
||||||
oPanel2 = new leimnud.module.panel();
|
oPanel2 = new leimnud.module.panel();
|
||||||
|
|||||||
@@ -49,7 +49,8 @@ if(isset($_POST['showWindow'])) {
|
|||||||
if(! isset($_POST['action'])) {
|
if(! isset($_POST['action'])) {
|
||||||
$_POST['action'] = '';
|
$_POST['action'] = '';
|
||||||
}
|
}
|
||||||
switch($_POST['action']) {
|
|
||||||
|
switch(($_POST['action'])?$_POST['action']:$_REQUEST['action']) {
|
||||||
case 'steps':
|
case 'steps':
|
||||||
global $G_PUBLISH;
|
global $G_PUBLISH;
|
||||||
$G_PUBLISH = new Publisher();
|
$G_PUBLISH = new Publisher();
|
||||||
@@ -546,9 +547,9 @@ switch($_POST['action']) {
|
|||||||
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['NEXT_STEP'] = '#';
|
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['NEXT_STEP'] = '#';
|
||||||
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['NEXT_ACTION'] = 'return false;';
|
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['NEXT_ACTION'] = 'return false;';
|
||||||
$_SESSION['DYN_UID_PRINT'] = $_POST['DYN_UID'];
|
$_SESSION['DYN_UID_PRINT'] = $_POST['DYN_UID'];
|
||||||
if(!isset($_SESSION['CURRENT_DYN_UID'])) $_SESSION['CURRENT_DYN_UID'] = $_POST['DYN_UID'];
|
if(!isset($_SESSION['CURRENT_DYN_UID'])) $_SESSION['CURRENT_DYN_UID'] = $_POST['DYN_UID']?$_POST['DYN_UID']:$_REQUEST['DYN_UID'];
|
||||||
$G_PUBLISH->AddContent('dynaform', 'xmlform', $_SESSION['PROCESS'] . '/' . $_POST['DYN_UID'], '', $Fields['APP_DATA'], '', '', 'view');
|
$G_PUBLISH->AddContent('dynaform', 'xmlform', $_SESSION['PROCESS'] . '/' . $_REQUEST['DYN_UID'], '', $Fields['APP_DATA'], '', '', 'view');
|
||||||
G::RenderPage('publish', 'raw');
|
G::RenderPage('publish', 'blank');
|
||||||
break;
|
break;
|
||||||
case 'showDynaformHistory':
|
case 'showDynaformHistory':
|
||||||
$G_PUBLISH = new Publisher();
|
$G_PUBLISH = new Publisher();
|
||||||
|
|||||||
Reference in New Issue
Block a user