Browse Source

Fix EfCoreCommentRepository sorting problem

pull/12921/head
liangshiwei 4 years ago
parent
commit
c9475f3a3e
  1. 2
      modules/cms-kit/src/Volo.CmsKit.EntityFrameworkCore/Volo/CmsKit/Comments/EfCoreCommentRepository.cs

2
modules/cms-kit/src/Volo.CmsKit.EntityFrameworkCore/Volo/CmsKit/Comments/EfCoreCommentRepository.cs

@ -67,7 +67,7 @@ public class EfCoreCommentRepository : EfCoreRepository<ICmsKitDbContext, Commen
creationEndDate, creationEndDate,
token); token);
if (sorting != null) if (!sorting.IsNullOrEmpty())
{ {
sorting = "comment." + sorting; sorting = "comment." + sorting;
} }

Loading…
Cancel
Save