docs: bug fix for not updating poem full title

This commit is contained in:
Hamid Reza Mohammadi 2022-05-27 10:03:57 +04:30
parent 4f4d4d2e43
commit 0acc0d8bf3

View File

@ -86,6 +86,12 @@ namespace RMuseum.Services.Implementation
dbCorrection.AffectedThePoem = true;
dbPoem.Title = moderation.Title.Replace("ۀ", "هٔ").Replace("ك", "ک");
dbPage.Title = dbPoem.Title;
if(dbPage.ParentId != null)
{
GanjoorPage parent = await _context.GanjoorPages.AsNoTracking().Where(p => p.Id == dbPage.ParentId).SingleAsync();
dbPage.FullTitle = parent.FullTitle + " » " + dbPage.Title;
dbPoem.FullTitle = dbPage.FullTitle;
}
updatePoem = true;
}
}