From a17e0eeb23565a988f58fe13dab3bd1f61ab1e71 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Wed, 25 May 2016 08:16:41 +0200 Subject: [PATCH] DbObject: reset modified properties when loaded --- library/Director/Data/Db/DbObject.php | 1 + 1 file changed, 1 insertion(+) diff --git a/library/Director/Data/Db/DbObject.php b/library/Director/Data/Db/DbObject.php index 4406af26..5af989d2 100644 --- a/library/Director/Data/Db/DbObject.php +++ b/library/Director/Data/Db/DbObject.php @@ -616,6 +616,7 @@ abstract class DbObject $this->loadedFromDb = true; $this->loadedProperties = $this->properties; $this->hasBeenModified = false; + $this->modifiedProperties = array(); $this->onLoadFromDb(); return $this; }