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
This commit is contained in:
Ingo Schommer 2009-07-16 23:47:50 +00:00
parent 49ee0cc1bc
commit f233d00072

View File

@ -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( $changedFields[$name] = array(
'before' => array_key_exists($name, $this->original) ? $this->original[$name] : null, 'before' => array_key_exists($name, $this->original) ? $this->original[$name] : null,
'after' => array_key_exists($name, $this->record) ? $this->record[$name] : null, 'after' => array_key_exists($name, $this->record) ? $this->record[$name] : null,