Upgrade to 3.1.4
This commit is contained in:
@@ -247,9 +247,13 @@ class Page extends ModelWithContent
|
||||
}
|
||||
|
||||
$blueprints = [];
|
||||
$templates = $this->blueprint()->options()['changeTemplate'] ?? false;
|
||||
$templates = $this->blueprint()->options()['changeTemplate'] ?? [];
|
||||
$currentTemplate = $this->intendedTemplate()->name();
|
||||
|
||||
if (is_array($templates) === false) {
|
||||
$templates = [];
|
||||
}
|
||||
|
||||
// add the current template to the array
|
||||
$templates[] = $currentTemplate;
|
||||
|
||||
|
Reference in New Issue
Block a user