Browse Source

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

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2327 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 12 years ago
parent
commit
6d7a7696fb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/dbobject.class.php

+ 1 - 1
core/dbobject.class.php

@@ -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())