Renamed variable in order to fix issue when using content picker

This commit is contained in:
Emma Garland
2018-11-08 14:14:50 +00:00
committed by Sebastiaan Janssen
parent 92dacf050b
commit b065089bcb

View File

@@ -282,7 +282,7 @@ function contentPickerController($scope, entityResource, editorState, iconHelper
});
/** Syncs the renderModel based on the actual model.value and returns a promise */
function syncRenderModel(validate) {
function syncRenderModel(doValidation) {
var valueIds = $scope.model.value ? $scope.model.value.split(',') : [];
@@ -324,7 +324,7 @@ function contentPickerController($scope, entityResource, editorState, iconHelper
});
if (validate) {
if (doValidation) {
validate();
}
@@ -347,7 +347,7 @@ function contentPickerController($scope, entityResource, editorState, iconHelper
}
}
if (validate) {
if (doValidation) {
validate();
}