Small optimization: do not recompute external fields if the value of the external key did not change

SVN:trunk[2327]
This commit is contained in:
Denis Flaven
2012-10-22 13:22:01 +00:00
parent 9f47c09cdf
commit 180f215ab0

View File

@@ -331,7 +331,7 @@ abstract class DBObject
}
}
}
else
else if ($this->m_aCurrValues[$sAttCode] != $value)
{
// Setting an external key, but no any other information is available...
// Invalidate the corresponding fields so that they get reloaded in case they are needed (See Get())