Browse Source

Merge pull request #12921 from abpframework/liangshiwei/cms

Fix EfCoreCommentRepository sorting problem
pull/12930/head
maliming 4 years ago
committed by GitHub
parent
commit
2f721c9988
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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,
token);
if (sorting != null)
if (!sorting.IsNullOrEmpty())
{
sorting = "comment." + sorting;
}

Loading…
Cancel
Save