From f233d00072111874bf3f3d0921de39fff64ee15f Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 16 Jul 2009 23:47:50 +0000 Subject: [PATCH] BUGFIX Fixed missing iteration check in DataObject?->getChangedFields() (merged from branches/2.3-nzct) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@82058 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/DataObject.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/model/DataObject.php b/core/model/DataObject.php index 71a9272ec..b8b4c8a43 100644 --- a/core/model/DataObject.php +++ b/core/model/DataObject.php @@ -1942,7 +1942,7 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity } } - if ($fields) foreach($fields as $name => $level) { + if($fields) foreach($fields as $name => $level) { $changedFields[$name] = array( 'before' => array_key_exists($name, $this->original) ? $this->original[$name] : null, 'after' => array_key_exists($name, $this->record) ? $this->record[$name] : null,