mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #7219 from silverstripe/pulls/4.0/dbcomposite-properties
BUGFIX: DBComposite doesn't allow arbitrary property assignment
This commit is contained in:
commit
90f6710020
@ -240,8 +240,10 @@ abstract class DBComposite extends DBField
|
||||
{
|
||||
$this->objCacheClear();
|
||||
|
||||
// Skip non-db fields
|
||||
// Non-db fields get assigned as normal properties
|
||||
if (!$this->hasField($field)) {
|
||||
parent::setField($field, $value);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user