From 8101a799cdc97ebd3a0fd9529bc76d3e32687f48 Mon Sep 17 00:00:00 2001 From: Hamid Reza Mohammadi Date: Tue, 12 Dec 2023 10:00:24 +0330 Subject: [PATCH] #413 bug fix --- RMuseum/Services/Implementation/GanjoorService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RMuseum/Services/Implementation/GanjoorService.cs b/RMuseum/Services/Implementation/GanjoorService.cs index 3eeb30d1..5c1342ef 100644 --- a/RMuseum/Services/Implementation/GanjoorService.cs +++ b/RMuseum/Services/Implementation/GanjoorService.cs @@ -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)) )