diff --git a/core/dbobject.class.php b/core/dbobject.class.php index 24b701d1c..ef84955d5 100644 --- a/core/dbobject.class.php +++ b/core/dbobject.class.php @@ -334,7 +334,7 @@ abstract class DBObject } if ($this->m_bIsInDB && !$this->m_aLoadedAtt[$sAttCode] && !$this->m_bDirty) { - // #@# non-scalar attributes.... handle that differentely + // #@# non-scalar attributes.... handle that differently $this->Reload(); } return $this->m_aCurrValues[$sAttCode]; @@ -918,6 +918,9 @@ abstract class DBObject $this->DBWriteLinks(); $this->m_bIsInDB = true; $this->m_bDirty = false; + + // Arg cache invalidated (in particular, it needs the object key -could be improved later) + $this->m_aAsArgs = null; $this->AfterInsert();