-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Changing datatype property editor breaks content type #8976
Comments
Is this new behavior though? I haven't grasped this completely yet, but it's not very surprising that content that you change from a textstring to a NestedContent property can't be deserialized and give errors right? 🙈 But you seem to imply we used to quietly ignore this? |
I made a small error in my previous explanation (now updated) that totally changed the meaning of the issue... 🤦♂️ If you change the property editor that a data type implements, any doctypes using that data type still point to the old property editor until you go in and re-pick the data type. You can see this in the UI (comparing screenshots #1 and #4 above) - changed from Some complex editors, like Nested Content and Block List, load a "scaffold" from the API to render the preview. It seems the old data type details and property value converter are being used are used to render the scaffold for the new data type which results in an error. This error implies the wrong / old data type configuration object is being passed to the scaffold method after changing from Nested Content to Block List:
|
Hiya @callumbwhyte, Just wanted to let you know that we noticed that this issue got a bit stale and might not be relevant any more. We will close this issue for now but we're happy to open it up again if you think it's still relevant (for example: it's a feature request that's not yet implemented, or it's a bug that's not yet been fixed). To open it this issue up again, you can write For example:
This will reopen the issue in the next few hours. Thanks, from your friendly Umbraco GitHub bot 🤖 🙂 |
As of the latest Umbraco 8.7, changing the property editor attached to a datatype breaks any doctypes using it.
Reproduction
In this case, the property editor used to be
Umbraco.Textbox
but it is nowUmbraco.MultiNodeTreePicker
.4.1. When loading the preview for some complex editors an error is presented. It looks like the old data type configuration is passed to the new data type, which obviously results in an error.
Here is the error thrown when switching from Nested Content to Block List.
The text was updated successfully, but these errors were encountered: