This commit is contained in:
Hamid Reza Mohammadi 2023-12-12 10:00:24 +03:30
parent 81bcbb1aed
commit 8101a799cd

View File

@ -2501,7 +2501,7 @@ namespace RMuseum.Services.Implementation
&&
((string.IsNullOrEmpty(rhyme) && s.SectionType == PoemSectionType.WholePoem) || (!string.IsNullOrEmpty(rhyme) && s.RhymeLetters == rhyme))
&&
(format == GanjoorPoemFormat.Unknown || s.PoemFormat == format)
((format == GanjoorPoemFormat.Unknown && s.PoemFormat == null ) || s.PoemFormat == format)
&&
(catId == null || catIdList.Contains(s.Poem.CatId))
)