Skip to content

Commit

Permalink
Merge pull request #1688 from successopen/fix-model-name-error
Browse files Browse the repository at this point in the history
Fixes model name error if validation error occurs.
  • Loading branch information
tidyui committed Aug 11, 2021
2 parents 7e5ac03 + 228bf22 commit dcb158f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/Piranha.Manager/Controllers/MediaApiController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public async Task<IActionResult> SaveFolder(MediaFolderModel model, MediaType? f
}
catch (ValidationException e)
{
var result = new AliasListModel();
var result = new MediaListModel();
result.Status = new StatusMessage
{
Type = StatusMessage.Error,
Expand Down

0 comments on commit dcb158f

Please sign in to comment.