From 2e9ff6143600f4e0524a0770f8a72f9e99f2d197 Mon Sep 17 00:00:00 2001 From: phoenixeliot Date: Tue, 2 Aug 2016 13:43:13 -0700 Subject: [PATCH] Fix broken ladder in course --- app/views/play/level/PlayLevelView.coffee | 2 +- app/views/play/level/modal/CourseVictoryModal.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/play/level/PlayLevelView.coffee b/app/views/play/level/PlayLevelView.coffee index 1a5923a8b..733e4c059 100644 --- a/app/views/play/level/PlayLevelView.coffee +++ b/app/views/play/level/PlayLevelView.coffee @@ -571,7 +571,7 @@ module.exports = class PlayLevelView extends RootView ModalClass = CourseVictoryModal if @isCourseMode() or me.isSessionless() if @level.isType('course-ladder') ModalClass = CourseVictoryModal - options.courseInstanceID = @getQueryVariable 'league' + options.courseInstanceID = @getQueryVariable 'course-instance' or @getQueryVariable 'league' ModalClass = PicoCTFVictoryModal if window.serverConfig.picoCTF victoryModal = new ModalClass(options) @openModalView(victoryModal) diff --git a/app/views/play/level/modal/CourseVictoryModal.coffee b/app/views/play/level/modal/CourseVictoryModal.coffee index 1e320698f..2b52e999e 100644 --- a/app/views/play/level/modal/CourseVictoryModal.coffee +++ b/app/views/play/level/modal/CourseVictoryModal.coffee @@ -14,7 +14,7 @@ module.exports = class CourseVictoryModal extends ModalView initialize: (options) -> @courseID = options.courseID - @courseInstanceID = options.courseInstanceID + @courseInstanceID = options.courseInstanceID or @getQueryVariable 'course-instance' or @getQueryVariable 'league' @views = [] @session = options.session