Skip to content

Commit b740bf7

Browse files
authored
Merge pull request #3258 from TechnologyEnhancedLearning/Develop/Fixes/TD-5487-IssueshowingmultiplecommentswhenclickedthebacklinkaftersubmittedthereviewonFrameworkssection
TD-5487 Issue showing multiple comments when clicked the back link after submitted the review on Frameworks section
2 parents 7be11c2 + 3f0ed28 commit b740bf7

File tree

1 file changed

+1
-0
lines changed
  • DigitalLearningSolutions.Web/Controllers/FrameworksController

1 file changed

+1
-0
lines changed

DigitalLearningSolutions.Web/Controllers/FrameworksController/Review.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public IActionResult LoadReview(int frameworkId, int reviewId)
6363
{
6464
var adminId = GetAdminId();
6565
var framework = frameworkService.GetBaseFrameworkByFrameworkId(frameworkId, adminId);
66+
if (framework.FrameworkReviewID == 0 || framework.FrameworkReviewID == null) return RedirectToAction("StatusCode", "LearningSolutions", new { code = 410 });
6667
if (framework == null) return StatusCode(404);
6768
if (framework.UserRole < 1) return StatusCode(403);
6869
var frameworkName = framework.FrameworkName;

0 commit comments

Comments
 (0)