From b5bfbb5c258bead2b7e35ed38b843045d38ee584 Mon Sep 17 00:00:00 2001 From: Jeroen Breuer Date: Wed, 30 Jul 2014 16:33:01 +0200 Subject: [PATCH] Fix 3 for #187 --- app/resources/propertyeditor.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/resources/propertyeditor.js b/app/resources/propertyeditor.js index 13b6afb..0bf4980 100644 --- a/app/resources/propertyeditor.js +++ b/app/resources/propertyeditor.js @@ -6,9 +6,9 @@ angular.module('umbraco.resources').factory('archetypePropertyEditorResource', f $http.get("/umbraco/backoffice/ArchetypeApi/ArchetypeDataType/GetAll"), 'Failed to retrieve datatypes from tree service' ); }, - getDataType: function(guid) { + getDataType: function (guid, contentTypeAlias, propertyTypeAlias, archetypeAlias) { return umbRequestHelper.resourcePromise( - $http.get("/umbraco/backoffice/ArchetypeApi/ArchetypeDataType/GetByGuid?guid=" + guid), 'Failed to retrieve datatype' + $http.get("/umbraco/backoffice/ArchetypeApi/ArchetypeDataType/GetByGuid?guid=" + guid + "&contentTypeAlias=" + contentTypeAlias + "&propertyTypeAlias=" + propertyTypeAlias + "&archetypeAlias=" + archetypeAlias), 'Failed to retrieve datatype' ); }, getPropertyEditorMapping: function(alias) { @@ -26,4 +26,4 @@ angular.module('umbraco.resources').factory('archetypePropertyEditorResource', f }); } } -}); \ No newline at end of file +});