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

Only set default template for pages when no template is currently selected #5148

Merged
merged 6 commits into from Mar 27, 2020

Conversation

danrot
Copy link
Contributor

@danrot danrot commented Mar 27, 2020

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets ---
Related issues/PRs introduced in #5119
License MIT
Documentation PR ---

What's in this PR?

This PR chooses the default template based on a value from the type schema request.

Why?

Because the ResourceFormStore was setting the first one as default, and completely ignoring the defaults defined in the webspace.

@alexander-schranz alexander-schranz added the Bug Error or unexpected behavior of already existing functionality label Mar 27, 2020
@alexander-schranz alexander-schranz merged commit e326d2b into sulu:release/2.0 Mar 27, 2020
@danrot danrot deleted the bugfix/default-templates branch March 27, 2020 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Error or unexpected behavior of already existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants