BUG 7066 Adjustment in PM tables into Process to updating records.

This commit is contained in:
Hector Cortez
2011-06-23 14:34:21 -04:00
parent a66aa7c2e8
commit 1fdac470d2

View File

@@ -132,7 +132,8 @@ foreach ( $_POST ['form'] as $sField => $sAux ) {
}
// saving the data ina pm table in case that is a new record
if (!empty($newValues)){
$oAdditionalTables->saveDataInTable ( $oForm->fields [$oForm->fields [$sField]->pmconnection]->pmtable, $newValues);
if(!$oAdditionalTables->saveDataInTable ( $oForm->fields [$oForm->fields [$sField]->pmconnection]->pmtable, $newValues))
$oAdditionalTables->updateDataInTable( $oForm->fields [$oForm->fields [$sField]->pmconnection]->pmtable, $newValues);
}
//save data
$aData = array ();