Skip to content

Commit

Permalink
Fix issue when page has no components (#993)
Browse files Browse the repository at this point in the history
Triggered when getComponentProperties() called on a page with no components present.
  • Loading branch information
mjauvin authored Oct 14, 2023
1 parent 751545f commit 10b55d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/cms/classes/CmsCompoundObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@ public function getComponentProperties($componentName)
}

return [];
} else {
$objectComponentMap[$objectCode] = [];
}

if (!isset($this->settings['components'])) {
Expand Down

0 comments on commit 10b55d8

Please sign in to comment.