-
Notifications
You must be signed in to change notification settings - Fork 2
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
Unable to set JSON config for additionalInfo property #550
Comments
Hey @justin-nevitech from what endpoint is that exception being thrown? |
Actually, looking at the code, it is expected that I think what I could probably do though is when the property model is being created client side, if the config string looks like a json string, then I think we can deserialize it client side and send it to the property in the format it expects. |
Ok, so I've just pushed a 13.1.7--preview.1+fc04426 build to our nightly server if you want to give that a try. It still expects the config to be a string so you'll need to encode the json config value, but the front end should now attempt to parse it out. You can find details here on how to use the nightly feed https://docs.umbraco.com/umbraco-cms/fundamentals/setup/install/installing-nightly-builds |
Thanks @mattbrailsford Will have a look next week, on holiday at the moment. |
Hi @mattbrailsford All works using the 13.1.7--preview.1+fc04426 nightly build and a JSON encoded config value, thanks! |
13.1.7 was released last week so I believe this should all be public now so will close down this issue. Many thanks for reporting. |
Describe the bug
I need to set some JSON in the config property to pass to a custom view for a property in the order editor config but it is not working. If I set this to a JSON value I get an error loading the config and if I set it to an encoded JSON string it errors when I try and edit the additional information section in the order (as it is expecting an object not a string).
Steps To Reproduce
Steps to reproduce the behavior:
The full error I get is:
Expected behavior
The custom property should load the editor config and pass the config to the view as JSON. I'm sure I had a working version of this with Vendr but that is going back a couple of years... I am following the instructions here but this doesn't specify what the JSON should look like:
https://docs.umbraco.com/umbraco-commerce/v/10.commerce.latest/key-concepts/ui-config-files#additional-info-config-options
Umbraco Commerce version:
13.1.6
The text was updated successfully, but these errors were encountered: