瀏覽代碼

G: fix bag

CoolVery 5 月之前
父節點
當前提交
928585d37e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      CheckArticlesForSpam/ViewModels/ArticleDataPageViewModel.cs

+ 1 - 1
CheckArticlesForSpam/ViewModels/ArticleDataPageViewModel.cs

@@ -47,7 +47,7 @@ namespace ChecksArticlesForSpam.ViewModels
             {
                 ArticleItem.TextArticle = TextArticle;
                 ArticleItem.UserId = currentUser.IdUser;
-                ArticleItem.CheckSpam = false;
+                if (ArticleItem.CheckSpam == null) ArticleItem.CheckSpam = false;
                 ArticleItem.Title = TitleArticle;
                 return new Dictionary<string, Article> { { "3", ArticleItem } }; ;
             }