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? :)
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
on
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? :)
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/
I'm also seeing this issue on 7.7.4 with LeBlender - was there a fix worked on at all?
This is still a issue on 7.7.7 with latest LeBlender from nuget
is working on a reply...