Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Vaidas 22 posts 65 karma points
    Jul 07, 2016 @ 06:09
    Vaidas
    0

    Vorto without Nested Content: Content not saved after publishing

    Hey all,

    For some reason after saving and publishing a node that has Vorto editors (e.g textsting wrapped in vorto) results in content not being saved.

    This happens only after a node is saved and published and there is no data in all languages. (when switching languages).

    JS seems to throw error: Cannot read property 'fr-FR' of null The issue is in Line 392

    scope.model.value = scope.value.values[scope.language];

    Here scope.value.values is null.

    Any ideas on how to fix it?

    vorto 1.5.2, umbraco 7.4.3

  • Vaidas 22 posts 65 karma points
    Jul 07, 2016 @ 06:57
    Vaidas
    0

    Been playing with it a bit. It seems that if I do:

       //$scope.model.value.values = !_.isEmpty(cleanValue) ? cleanValue : undefined;
       $scope.model.value.values = cleanValue; // <== this helps
    

    (vorto.js file on github)

    the issue disappears.

  • Vaidas 22 posts 65 karma points
    Jul 07, 2016 @ 07:18
    Vaidas
    0

    https://github.com/mattbrailsford/umbraco-vorto/pull/53

    Created a pull request with a possible solution

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Aug 23, 2016 @ 09:57
    Dave Woestenborghs
    0

    I created a pull request for the same problem. Only solved it different : https://github.com/mattbrailsford/umbraco-vorto/pull/59

    Dave

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies