[icinga-checkins] icinga.org: icingaweb2-module-director/master: DbObject: reset modified properties when loaded

git at icinga.org git at icinga.org
Wed May 25 08:17:08 CEST 2016


Module: icingaweb2-module-director
Branch: master
Commit: a17e0eeb23565a988f58fe13dab3bd1f61ab1e71
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=a17e0eeb23565a988f58fe13dab3bd1f61ab1e71

Author: Thomas Gelf <thomas at gelf.net>
Date:   Wed May 25 08:16:41 2016 +0200

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 4406af2..5af989d 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;
     }



More information about the icinga-checkins mailing list