From a4a3a4573084d22d8f28251613108ae29ea2d309 Mon Sep 17 00:00:00 2001 From: Niclas Date: Wed, 15 Jan 2025 10:25:56 +0100 Subject: [PATCH] fix: corrected run order of private controller decorator posts module --- source/php/Module/Posts/Posts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/php/Module/Posts/Posts.php b/source/php/Module/Posts/Posts.php index 08ddf24cc..dd4b81e4f 100644 --- a/source/php/Module/Posts/Posts.php +++ b/source/php/Module/Posts/Posts.php @@ -203,7 +203,6 @@ public function data(): array 'changeContent' => __('Change the lists content', 'modularity'), ]; - $data = $this->privateController->decorateData($data, $this->fields); return $data; } @@ -391,6 +390,7 @@ public function getTemplateData(string $template = '', array $data = array()) if (class_exists($class)) { $controller = new $class($this); $this->data = array_merge($this->data, $controller->data); + $this->data = $this->privateController->decorateData($this->data, $this->fields); } }