Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix smartcontent properties and page selection for non exist properties #95

Merged

Conversation

popoplanter
Copy link
Contributor

@alexander-schranz alexander-schranz force-pushed the bugfix/smartcontent-non-exist-property branch 3 times, most recently from 6c4fc76 to c9ece7d Compare June 9, 2021 11:45
@alexander-schranz alexander-schranz changed the title Fixed smartcontent properties and page selection Fix smartcontent properties and page selection for non exist properties Jun 9, 2021
@@ -76,12 +76,14 @@ public function resolve($data, PropertyInterface $property, string $locale, arra
'published' => !$this->showDrafts,
]);

list($pagesQuery) = $this->contentQueryBuilder->build($property->getStructure()->getWebspaceKey(), [$locale]);
$webspaceKey = $property->getStructure() ? $property->getStructure()->getWebspaceKey() : null;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure about this change. We would need some reproducable here why this change is required I currently can not reproduce it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/cc @thomasduenser I removed currently this change unless we have something to reproduce so we can atleast merge the other fix

@alexander-schranz alexander-schranz force-pushed the bugfix/smartcontent-non-exist-property branch from c9ece7d to bb08c6e Compare June 9, 2021 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants