docs: #319 bug fixs
This commit is contained in:
parent
2ec03ffdf3
commit
ef1d860a8b
@ -34,8 +34,8 @@ else
|
||||
}
|
||||
}
|
||||
|
||||
if (breakFromVIndices.length > 4) {
|
||||
alert('حداکثر از ۴ محل میتوانید قطعه را بشکنید.');
|
||||
if (breakFromVIndices.length > 1) {
|
||||
alert('حداکثر از ۱ محل میتوانید قطعه را بشکنید.');
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@ -25,8 +25,8 @@ else
|
||||
}
|
||||
}
|
||||
|
||||
if(breakFromVIndices.length > 4){
|
||||
alert('حداکثر از ۴ محل میتوانید قطعه را بشکنید.');
|
||||
if(breakFromVIndices.length > 1){
|
||||
alert('حداکثر از ۱ محل میتوانید قطعه را بشکنید.');
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@ -106,54 +106,6 @@ namespace RMuseum.Services.Implementation
|
||||
}
|
||||
}
|
||||
|
||||
if (dbCorrection.BreakFromVerse2VOrder != null)
|
||||
{
|
||||
if (moderation.BreakFromVerse2VOrder != dbCorrection.BreakFromVerse2VOrder)
|
||||
{
|
||||
dbCorrection.BreakFromVerse2VOrderResult = CorrectionReviewResult.RejectedBecauseWrong;
|
||||
dbCorrection.BreakFromVerse2VOrder = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
await _BreakSection(sections, editingSectionNotTracked, (int)dbCorrection.BreakFromVerse2VOrder);
|
||||
dbCorrection.BreakFromVerse2VOrderResult = CorrectionReviewResult.Approved;
|
||||
_context.GanjoorPoemSectionCorrections.Update(dbCorrection);
|
||||
await _context.SaveChangesAsync();
|
||||
}
|
||||
}
|
||||
|
||||
if (dbCorrection.BreakFromVerse3VOrder != null)
|
||||
{
|
||||
if (moderation.BreakFromVerse3VOrder != dbCorrection.BreakFromVerse3VOrder)
|
||||
{
|
||||
dbCorrection.BreakFromVerse3VOrderResult = CorrectionReviewResult.RejectedBecauseWrong;
|
||||
dbCorrection.BreakFromVerse3VOrder = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
await _BreakSection(sections, editingSectionNotTracked, (int)dbCorrection.BreakFromVerse3VOrder);
|
||||
dbCorrection.BreakFromVerse3VOrderResult = CorrectionReviewResult.Approved;
|
||||
_context.GanjoorPoemSectionCorrections.Update(dbCorrection);
|
||||
await _context.SaveChangesAsync();
|
||||
}
|
||||
}
|
||||
|
||||
if (dbCorrection.BreakFromVerse4VOrder != null)
|
||||
{
|
||||
if (moderation.BreakFromVerse4VOrder != dbCorrection.BreakFromVerse4VOrder)
|
||||
{
|
||||
dbCorrection.BreakFromVerse4VOrderResult = CorrectionReviewResult.RejectedBecauseWrong;
|
||||
dbCorrection.BreakFromVerse4VOrder = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
await _BreakSection(sections, editingSectionNotTracked, (int)dbCorrection.BreakFromVerse4VOrder);
|
||||
dbCorrection.BreakFromVerse4VOrderResult = CorrectionReviewResult.Approved;
|
||||
_context.GanjoorPoemSectionCorrections.Update(dbCorrection);
|
||||
await _context.SaveChangesAsync();
|
||||
}
|
||||
}
|
||||
|
||||
_context.GanjoorPoemSectionCorrections.Update(dbCorrection);
|
||||
await _context.SaveChangesAsync();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user