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:
jennylee
2013-11-11 15:38:08 -04:00
parent 4bb43977a0
commit e3798f0134

View File

@@ -166,11 +166,7 @@ try {
if (! empty( $newValues )) {
$id = key( $newValues );
$newValues[$id] = $aData['APP_DATA'][$id];
$idPmtable = $oForm->fields[$id]->owner->tree->children[0]->attributes['pmtable'];
while (strlen($id) < 3) {
$id = '_' . $id;
}
$idPmtable = $oForm->fields[$id]->pmconnection->pmtable != '' ? $oForm->fields[$id]->pmconnection->pmtable : $oForm->fields[$id]->owner->tree->children[0]->attributes['pmtable'];
if (!($oAdditionalTables->updateDataInTable($idPmtable, $newValues ))) {
//<--This is to know if it is a new registry on the PM Table