DBObject : fix lines altered wrongly in merge commit

This commit is contained in:
Pierre Goiffon
2021-06-28 09:12:18 +02:00
parent 85526b1983
commit b1aebc6c7a

View File

@@ -3271,13 +3271,18 @@ abstract class DBObject implements iDisplay
$this->DBWriteLinks();
$this->WriteExternalAttributes();
if (count($aChanges) != 0)
{
// following lines are resetting changes (so after this {@see DBObject::ListChanges()} won't return changes anymore)
// new values are already in the object (call {@see DBObject::Get()} to get them)
// call {@see DBObject::ListPreviousValuesForUpdatedAttributes()} to get changed fields and previous values
$this->m_bDirty = false;
$this->m_aTouchedAtt = array();
$this->m_aModifiedAtt = array();
if (count($aChanges) != 0) {
$this->RecordAttChanges($aChanges, $aOriginalValues);
}
if ($bIsTransactionEnabled)
{
if ($bIsTransactionEnabled) {
CMDBSource::Query('COMMIT');
}
break;