Merge branch 'v7/feature/AB-1479-Reintroduce-the-bypass-security-option-in-pickers' of https://github.com/umbraco/Umbraco-CMS into v7/feature/AB-1479-Reintroduce-the-bypass-security-option-in-pickers

This commit is contained in:
Shannon
2019-06-26 16:49:00 +10:00

View File

@@ -327,12 +327,12 @@ function entityResource($q, $http, umbRequestHelper) {
*
*/
getAncestors: function (id, type, options) {
var args = [
{ id: id },
{ type: type }
];
if (options.dataTypeId) {
if (options && options.dataTypeId) {
args.push({ dataTypeId: options.dataTypeId });
}
@@ -361,7 +361,7 @@ function entityResource($q, $http, umbRequestHelper) {
getChildren: function (id, type, options) {
var args = [{ id: id }, { type: type }];
if (options.dataTypeId) {
if (options && options.dataTypeId) {
args.push({ dataTypeId: options.dataTypeId });
}