Copied to clipboard

Flag this post as spam?

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


  • Nils Frank 19 posts 89 karma points
    Apr 26, 2017 @ 11:52
    Nils Frank
    0

    Bug: Using Vorto with Umbraco Tags

    Hi, Im using Vorto with the Umbraco Tags datatype. Im getting the error:

    "Cannot read property 'mandatory' of undefined"

    It is thrown in Line 15874 in umbraco.controllers.js. enter image description here Because "$scope.model.validation" is undefined!

    I already set the storageType in the datatype to JSON to fix this problem.Cannot delete entries for tags datatype

    Vorto: 1.5.3 Umbraco: 7.5.13

    Any help would be appreciated :)

    Best regards

    Nils

  • Sotiris Filippidis 286 posts 1501 karma points
    Dec 15, 2017 @ 12:51
    Sotiris Filippidis
    0

    Having the exact same problem with 7.5.3 - any help would be valuable.

  • Sotiris Filippidis 286 posts 1501 karma points
    Jan 05, 2018 @ 18:40
    Sotiris Filippidis
    0

    In lack of a better workaround I hacked umbraco.controllers.js adding a try/catch so that it returns true in case of an error (not the best way, but at least it stopped throwing errors!).

     // Method required by the valPropertyValidator directive (returns true if the property editor has at least one tag selected)
                $scope.validateMandatory = function () {
                    try {
                    return {
    
                            isValid: !$scope.model.validation.mandatory || ($scope.model.value != null && $scope.model.value.length > 0),
                            errorMsg: "Value cannot be empty",
                            errorKey: "required"
    
                        };
                    } catch (err) {
                        return { isValid: true, errorMsg: null, errorKey: null } }
                }
    

    The problem is that autocomplete still doesn't seem to work.

  • Mary 4 posts 75 karma points
    Nov 12, 2018 @ 14:05
    Mary
    0

    This is still happening.

    Umbraco version 7.12.1

    Vorto 1.6.0

Please Sign in or register to post replies

Write your reply to:

Draft