Fix menus not being displayed with database templates (#4362)

Credit to @SebastiaanKloos.
This commit is contained in:
Sebastiaan Kloos 2019-06-06 15:05:38 +02:00 committed by Ben Thomson
parent 0d76ac9584
commit f921af4199
1 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ class Meta extends CmsObject
$this->content = $this->renderContent();
});
$this->bindEvent('model.afterFetch', function () {
$this->attributes = array_merge($this->parseContent(), $this->attributes);
$this->attributes = array_merge($this->attributes, $this->parseContent());
});
}
@ -82,4 +82,4 @@ class Meta extends CmsObject
{
return $this->renderContent();
}
}
}