From 49d96e503fb96681f6f8dfdbe391cb76d71f2861 Mon Sep 17 00:00:00 2001 From: Romain Quetiez Date: Mon, 6 Sep 2010 16:40:16 +0000 Subject: [PATCH] #205 Missing object hyperlink when using trigger on object creation SVN:trunk[783] --- core/dbobject.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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();