Skip to content

Commit

Permalink
Fixes an issue that prevented creating new pages (#3867)
Browse files Browse the repository at this point in the history
Fixes #3866 in the same way as in #3865 and #3769
The validation code is also needed when creating a new page, not only when editing an existing page.
  • Loading branch information
valadas authored Jun 28, 2020
1 parent df2068c commit 1cf00e8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ public HttpResponseMessage SavePageDetails(PageSettings pageSettings)
public HttpResponseMessage GetDefaultSettings(int pageId = 0)
{
var settings = this.pagesController.GetDefaultSettings(pageId);
return this.Request.CreateResponse(HttpStatusCode.OK, settings);
return this.Request.CreateResponse(HttpStatusCode.OK, new { page= settings, new DnnFileUploadOptions().ValidationCode });
}

/// <summary>
Expand Down

0 comments on commit 1cf00e8

Please sign in to comment.