FIX default_records are no longer inherited to child classes

This commit is contained in:
Daniel Hensby 2016-11-01 20:58:03 +00:00
parent 3859a1d7e7
commit c61d61d003
No known key found for this signature in database
GPG Key ID: 229831A941962E26

View File

@ -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);