diff --git a/IRaCIS.Core.Application/Service/Management/SystemNoticeService.cs b/IRaCIS.Core.Application/Service/Management/SystemNoticeService.cs index f3ef1e8b6..93ab937e5 100644 --- a/IRaCIS.Core.Application/Service/Management/SystemNoticeService.cs +++ b/IRaCIS.Core.Application/Service/Management/SystemNoticeService.cs @@ -70,7 +70,7 @@ namespace IRaCIS.Core.Application.Service systemNotice.PublishedUserId = _userInfo.Id; systemNotice.PublishedTime = DateTime.Now; } - else + else if(addOrEditSystemNotice.NoticeStateEnum == Domain.Share.Management.SystemNotice_NoticeStateEnum.NotPublish && systemNotice.NoticeStateEnum == Domain.Share.Management.SystemNotice_NoticeStateEnum.HavePublished) { systemNotice.PublishedUserId = null; systemNotice.PublishedTime = null;