mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
49ee0cc1bc
commit
f233d00072
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user