Skip to content

Commit

Permalink
Merge pull request #769 from helsingborg-stad/fix/corrected-private-c…
Browse files Browse the repository at this point in the history
…ontroller-posts-position

fix: corrected run order of private controller decorator posts module
  • Loading branch information
NiclasNorin authored Jan 15, 2025
2 parents 720d547 + a4a3a45 commit cae83f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/php/Module/Posts/Posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ public function data(): array
'changeContent' => __('Change the lists content', 'modularity'),
];

$data = $this->privateController->decorateData($data, $this->fields);
return $data;
}

Expand Down Expand Up @@ -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);
}
}

Expand Down

0 comments on commit cae83f7

Please sign in to comment.