Fix broken ladder in course

This commit is contained in:
phoenixeliot 2016-08-02 13:43:13 -07:00
parent eaaea6f08b
commit 2e9ff61436
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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