BUG-13475 Problemas al usar pmconnection.
No se podia insertar o editar nuevos datos en una PMTable usando pmconnection . El problema surgio porque se estaba recuperando de manera erronea el UID de la pmTable, obteniendose siempre vacio. por lo que se corrigio dicho error y ahora se obtiene correctamente el UID para trabajar con la tabla correcta. Hay que tener en cuenta que pmconnection solo funcona con PMTables y no asi con Report Tables.
This commit is contained in:
@@ -166,11 +166,7 @@ try {
|
|||||||
if (! empty( $newValues )) {
|
if (! empty( $newValues )) {
|
||||||
$id = key( $newValues );
|
$id = key( $newValues );
|
||||||
$newValues[$id] = $aData['APP_DATA'][$id];
|
$newValues[$id] = $aData['APP_DATA'][$id];
|
||||||
$idPmtable = $oForm->fields[$id]->owner->tree->children[0]->attributes['pmtable'];
|
$idPmtable = $oForm->fields[$id]->pmconnection->pmtable != '' ? $oForm->fields[$id]->pmconnection->pmtable : $oForm->fields[$id]->owner->tree->children[0]->attributes['pmtable'];
|
||||||
|
|
||||||
while (strlen($id) < 3) {
|
|
||||||
$id = '_' . $id;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!($oAdditionalTables->updateDataInTable($idPmtable, $newValues ))) {
|
if (!($oAdditionalTables->updateDataInTable($idPmtable, $newValues ))) {
|
||||||
//<--This is to know if it is a new registry on the PM Table
|
//<--This is to know if it is a new registry on the PM Table
|
||||||
|
|||||||
Reference in New Issue
Block a user