Change GetScaffold to GetEmpty
This commit is contained in:
@@ -112,13 +112,13 @@ function contentTypeResource($q, $http, umbRequestHelper) {
|
||||
'Failed to retrieve all content types');
|
||||
},
|
||||
|
||||
getScaffold: function () {
|
||||
getEmpty: function () {
|
||||
|
||||
return umbRequestHelper.resourcePromise(
|
||||
$http.get(
|
||||
umbRequestHelper.getApiUrl(
|
||||
"contentTypeApiBaseUrl",
|
||||
"GetScaffold")),
|
||||
"getEmpty")),
|
||||
'Failed to retrieve content type scaffold');
|
||||
},
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ namespace Umbraco.Web.Editors
|
||||
return dto;
|
||||
}
|
||||
|
||||
public Umbraco.Web.Models.ContentEditing.ContentTypeDisplay GetScaffold()
|
||||
public Umbraco.Web.Models.ContentEditing.ContentTypeDisplay GetEmpty()
|
||||
{
|
||||
var ct = new ContentType(-1);
|
||||
var dto = Mapper.Map<IContentType, Umbraco.Web.Models.ContentEditing.ContentTypeDisplay>(ct);
|
||||
|
||||
Reference in New Issue
Block a user