mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX default_records are no longer inherited to child classes
This commit is contained in:
parent
3859a1d7e7
commit
c61d61d003
@ -3503,7 +3503,7 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity
|
||||
* @uses DataExtension->requireDefaultRecords()
|
||||
*/
|
||||
public function requireDefaultRecords() {
|
||||
$defaultRecords = $this->stat('default_records');
|
||||
$defaultRecords = $this->config()->get('default_records', Config::UNINHERITED);
|
||||
|
||||
if(!empty($defaultRecords)) {
|
||||
$hasData = DataObject::get_one($this->class);
|
||||
|
Loading…
Reference in New Issue
Block a user