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:
@@ -4,11 +4,13 @@ require_once('classes/model/AdditionalTables.php');
|
||||
$oAdditionalTables = new AdditionalTables();
|
||||
$aData = $oAdditionalTables->load($_POST['ADD_TABLE'], true);
|
||||
$addTabName = $aData['ADD_TAB_NAME'];
|
||||
$c = 1;
|
||||
foreach ($aData['FIELDS'] as $iRow => $aRow) {
|
||||
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['ADD_TABLE'] = $_POST['ADD_TABLE'];
|
||||
|
||||
Reference in New Issue
Block a user