Giter Site home page Giter Site logo

Comments (5)

mattbrailsford avatar mattbrailsford commented on September 18, 2024

I've created what I think is the right fix here, would you be able to test it?

https://github.com/mattbrailsford/Vorto/tree/bug/convert-source-to-object

from umbraco-vorto.

jbreuer avatar jbreuer commented on September 18, 2024

Sorry didn't have time to test it yet, but the code looks similar to a fix I once made for Archetype so I think this should work :-) kgiszewski/Archetype@07750c7

from umbraco-vorto.

mattbrailsford avatar mattbrailsford commented on September 18, 2024

Fixed in commit ea5789d

from umbraco-vorto.

mattbrailsford avatar mattbrailsford commented on September 18, 2024

Just thought I'd write a note hear as this fix has been somewhat reversed in the upcoming release as I've now remembered whilst helping someone else fix an issue why ConvertDataToSource is tried first. The reason is that the editor value is saved as JSON rather than as XML like it would be if it was a normal property. The problem is, normally, during the conversion to XML for the XML cache, ConvertDataToSource would be called and this return value is what is stored in the XML, however because our value is stored as JSON, it never has this conversion happen, so we have to have code that runs ConvertDataToSource first, and if the value still isn't correct, then it tries ConvertSourceToObject.

from umbraco-vorto.

mattbrailsford avatar mattbrailsford commented on September 18, 2024

Just to note, both methods are still tried, so things should still work as before, it's the fact code was changed to try ConvertSourceToObject first that has been reverted so that ConvertDataToSource is tried first.

from umbraco-vorto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.