BUG 7612 Cannot create Dynaform using PM table

This problem was fixed, there was a problem with an index of the grid
This commit is contained in:
Carlos Pacha
2011-09-09 12:39:04 -04:00
parent dea6bea6ff
commit 49adad7297
3 changed files with 7 additions and 5 deletions

View File

@@ -4,11 +4,13 @@ require_once('classes/model/AdditionalTables.php');
$oAdditionalTables = new AdditionalTables(); $oAdditionalTables = new AdditionalTables();
$aData = $oAdditionalTables->load($_POST['ADD_TABLE'], true); $aData = $oAdditionalTables->load($_POST['ADD_TABLE'], true);
$addTabName = $aData['ADD_TAB_NAME']; $addTabName = $aData['ADD_TAB_NAME'];
$c = 1;
foreach ($aData['FIELDS'] as $iRow => $aRow) { foreach ($aData['FIELDS'] as $iRow => $aRow) {
if ($aRow['FLD_KEY'] == 1) { if ($aRow['FLD_KEY'] == 1) {
$aFields['FIELDS'][$iRow] = $aRow; $aFields['FIELDS'][$c++] = $aRow;
} }
} }
//g::pr($aFields['FIELDS']); die;
$aFields['DYN_UID'] = $_POST['DYN_UID']; $aFields['DYN_UID'] = $_POST['DYN_UID'];
$aFields['ADD_TABLE'] = $_POST['ADD_TABLE']; $aFields['ADD_TABLE'] = $_POST['ADD_TABLE'];

View File

@@ -38,7 +38,7 @@
} else { } else {
action = document.getElementsByName('form[DYN_SOURCE]')[1].value; action = document.getElementsByName('form[DYN_SOURCE]')[1].value;
} }
panel = popupWindowObject('@G::LoadTranslation(ID_NEW_DYNAFORM)', '@G::encryptlink(@#dynaformsNewPlugin)?PRO_UID=@%PRO_UID&ACTION='+action , 400, 350); panel = popupWindowObject('@G::LoadTranslation(ID_NEW_DYNAFORM)', '@G::encryptlink(@#dynaformsNewPlugin)?PRO_UID=@%PRO_UID&ACTION='+action , 450, 350);
currentPopupWindow.remove(); currentPopupWindow.remove();
} }
@@ -49,4 +49,4 @@ function cancel(){
]]> ]]>
</JS> </JS>
</dynaForm> </dynaForm>

View File

@@ -99,7 +99,7 @@ document.getElementById('form[DYN_TITLE]').value = document.getElementById('form
oPanel = new leimnud.module.panel(); oPanel = new leimnud.module.panel();
oPanel.options = { oPanel.options = {
limit : true, limit : true,
size : {w:400,h:350}, size : {w:450,h:350},
position : {x:0,y:0,center:true}, position : {x:0,y:0,center:true},
title : '', title : '',
theme : 'processmaker', theme : 'processmaker',
@@ -146,4 +146,4 @@ document.getElementById('form[DYN_TITLE]').value = document.getElementById('form
]]> ]]>
</JS> </JS>
</dynaForm> </dynaForm>