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 preview webspace without theme #25

Merged
merged 2 commits into from
Mar 4, 2021
Merged

Fix preview webspace without theme #25

merged 2 commits into from
Mar 4, 2021

Conversation

plozmun
Copy link
Contributor

@plozmun plozmun commented Mar 3, 2021

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets -
Related issues/PRs -
License MIT

What's in this PR?

Fix for preview when no theme is specified in a webspace.

Why?

If no theme is specified default template dir must be used

Example Usage

Create a webspace without theme and try to preview a page in admin.

@plozmun
Copy link
Contributor Author

plozmun commented Mar 3, 2021

Maybe related to #15 ?

Copy link
Member

@alexander-schranz alexander-schranz left a comment

Choose a reason for hiding this comment

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

Looks good from my side just a small change request.

EventListener/SetThemeEventListener.php Outdated Show resolved Hide resolved
@alexander-schranz
Copy link
Member

The CI error is because sulu supports now a new version of gedmo extension. The following need to be done in the test setup: sulu/SuluArticleBundle@1745c7a

@plozmun
Copy link
Contributor Author

plozmun commented Mar 4, 2021

The CI error is because sulu supports now a new version of gedmo extension. The following need to be done in the test setup: sulu/SuluArticleBundle@1745c7a

PR ready in #26

@alexander-schranz
Copy link
Member

@plozmun thank you. Can you rebase this one?

plozmun and others added 2 commits March 4, 2021 15:17
@alexander-schranz alexander-schranz merged commit eb8fb82 into sulu:3.x Mar 4, 2021
@alexander-schranz
Copy link
Member

@plozmun Thank you!

@plozmun plozmun deleted the bugfix/preview-webspace-without-theme branch March 4, 2021 14:26
@alexander-schranz
Copy link
Member

Released as 3.0.1

@plozmun
Copy link
Contributor Author

plozmun commented Mar 4, 2021

Thanks @alexander-schranz !

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