docs: #293 bug fixes
This commit is contained in:
parent
5d9495b3c3
commit
e9a7c4e765
@ -44,6 +44,10 @@
|
||||
vOrder: vOrder
|
||||
},
|
||||
success: function (id) {
|
||||
if(String(id) == '-1'){
|
||||
alert('کار شکستن شعر شروع شد.');
|
||||
return;
|
||||
}
|
||||
location.href = '/?p=' + String(id);
|
||||
},
|
||||
error: function (e) {
|
||||
@ -276,7 +280,7 @@ else
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@if (Model.CanEdit && verse.VersePosition != RMuseum.Models.Ganjoor.VersePosition.Left)
|
||||
@if (Model.CanEdit && verse.VOrder > 1 && verse.VersePosition != RMuseum.Models.Ganjoor.VersePosition.Left)
|
||||
{
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
@ -270,6 +270,7 @@ namespace RMuseum.Services.Implementation
|
||||
context.GanjoorVerses.Remove(oldVerses[v]);
|
||||
}
|
||||
}
|
||||
await context.SaveChangesAsync();
|
||||
|
||||
await _FillPoemCoupletIndices(context, id);
|
||||
|
||||
|
||||
@ -2465,7 +2465,7 @@ namespace RMuseum.Services.Implementation
|
||||
{
|
||||
var poem = (await GetPoemById(poemId, true, false, true, false, false, false, false, true, true)).Result;
|
||||
var parentPage = await _context.GanjoorPages.AsNoTracking().Where(p => p.GanjoorPageType == GanjoorPageType.CatPage && p.CatId == poem.Category.Cat.Id).SingleAsync();
|
||||
var poemTitleStaticPart = poem.Title.Replace("۰", "").Replace("۱", "1").Replace("۲", "").Replace("۳", "").Replace("۴", "").Replace("۵", "").Replace("۶", "").Replace("۷", "").Replace("۸", "1").Replace("۹", "").Trim();
|
||||
var poemTitleStaticPart = poem.Title.Replace("۰", "").Replace("۱", "").Replace("۲", "").Replace("۳", "").Replace("۴", "").Replace("۵", "").Replace("۶", "").Replace("۷", "").Replace("۸", "").Replace("۹", "").Trim();
|
||||
if (poem.Next == null)
|
||||
{
|
||||
return await _BreakLastPoemInItsCategoryAsync(_context, poemId, vOrder, userId, poem, parentPage, poemTitleStaticPart);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user