From ad71967b2d3c1482f65062ab518203239e532cdd Mon Sep 17 00:00:00 2001 From: Alper Ebicoglu Date: Sat, 29 Sep 2018 01:43:31 +0300 Subject: [PATCH] Fixes #467. Set the default document name if it's empty. --- .../Volo.Docs.Web/Pages/Documents/Project/Index.cshtml.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml.cs b/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml.cs index 3c38b18c77..0e01442890 100644 --- a/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml.cs +++ b/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml.cs @@ -69,7 +69,11 @@ namespace Volo.Docs.Pages.Documents.Project ProjectFormat = projectDto.Format; - + if (DocumentName.IsNullOrWhiteSpace()) + { + DocumentName = projectDto.DefaultDocumentName; + } + DocumentNameWithExtension = DocumentName + "." + projectDto.Format; var versions = await _documentAppService.GetVersions(projectDto.ShortName, projectDto.DefaultDocumentName,