Browse Source
Merge pull request #9410 from abpframework/issue/9256
Blog: Make content required
pull/9423/head
ebicoglu
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
4 additions and
2 deletions
-
modules/blogging/src/Volo.Blogging.Web/Pages/Blogs/Posts/Edit.cshtml.cs
-
modules/blogging/src/Volo.Blogging.Web/Pages/Blogs/Posts/New.cshtml.cs
|
|
|
@ -97,6 +97,7 @@ namespace Volo.Blogging.Pages.Blog.Posts |
|
|
|
[DynamicStringLength(typeof(PostConsts), nameof(PostConsts.MaxUrlLength))] |
|
|
|
public string Url { get; set; } |
|
|
|
|
|
|
|
[Required] |
|
|
|
[HiddenInput] |
|
|
|
[DynamicStringLength(typeof(PostConsts), nameof(PostConsts.MaxContentLength))] |
|
|
|
public string Content { get; set; } |
|
|
|
@ -106,4 +107,4 @@ namespace Volo.Blogging.Pages.Blog.Posts |
|
|
|
|
|
|
|
public string Tags { get; set; } |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -91,6 +91,7 @@ namespace Volo.Blogging.Pages.Blog.Posts |
|
|
|
[DynamicStringLength(typeof(PostConsts), nameof(PostConsts.MaxUrlLength))] |
|
|
|
public string Url { get; set; } |
|
|
|
|
|
|
|
[Required] |
|
|
|
[HiddenInput] |
|
|
|
[DynamicStringLength(typeof(PostConsts), nameof(PostConsts.MaxContentLength))] |
|
|
|
public string Content { get; set; } |
|
|
|
@ -102,4 +103,4 @@ namespace Volo.Blogging.Pages.Blog.Posts |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|