Fix menus not being displayed with database templates (#4362)
Credit to @SebastiaanKloos.
This commit is contained in:
parent
0d76ac9584
commit
f921af4199
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue