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

When removing a template from a document type I get a bad request error and the template is not removed #17513

Closed
andr317c opened this issue Nov 12, 2024 · 2 comments

Comments

@andr317c
Copy link
Contributor

Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)

15.0.0-rc4

Bug summary

I am unable to remove an Allowed Template from a document type

Template
remove

Specifics

No response

Steps to reproduce

  1. Create a DocumentType with a template
  2. Try to remove template

Expected result / actual result

I would expect that I was able to remove the template

@bergmania
Copy link
Member

bergmania commented Nov 12, 2024

Error seems to be because the payload is wrong:

{
...
   "defaultTemplate": {
      "id": ""
   }
...
}

instead of the expected

{
...
   "defaultTemplate": null
...
}

@madsrasmussen
Copy link
Contributor

Fixed by #17516

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants