Copied to clipboard

Flag this post as spam?

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


  • John B 5 posts 75 karma points
    Oct 26, 2017 @ 16:26
    John B
    0

    Color Picker Cannot read property 'hasOwnProperty' of null

    Hello there. Today faced a problem on umbraco 7.7.4 + lates LeBlender Editor:

    on some of editors ColorPicker throws console error: "Cannot read property 'hasOwnProperty' of null" and didn't set any value to editor.

    I didn't find out when it happen, but changing

    var currentColor = $scope.model.value.hasOwnProperty('value') ? $scope.model.value.value : $scope.model.value;
    

    on

    var currentColor = ($scope.model.value && $scope.model.value.hasOwnProperty('value')) ? $scope.model.value.value : $scope.model.value;
    

    in umbraco.controller.js -> function ColorPickerController($scope), fixes the problem. So question is - what i need to do, to make it fixed after next umbraco updates? :)

  • Shannon Deminick 1526 posts 5272 karma points MVP 3x
    Oct 26, 2017 @ 23:32
    Shannon Deminick
    0

    Best thing to do is create a Pull Request from https://github.com/umbraco/Umbraco-CMS and target the dev-v7 branch, the fix will get reviewed and merged in :) Here's some docs about the process https://our.umbraco.org/contribute/quick-start-guide/

  • Dave Clarke 15 posts 127 karma points
    Nov 21, 2017 @ 15:25
    Dave Clarke
    0

    I'm also seeing this issue on 7.7.4 with LeBlender - was there a fix worked on at all?

  • Kristoffer 10 posts 80 karma points c-trib
    Jan 12, 2018 @ 08:38
    Kristoffer
    0

    This is still a issue on 7.7.7 with latest LeBlender from nuget

Please Sign in or register to post replies

Write your reply to:

Draft