Index: lams_learning/web/includes/javascript/gate-check.js =================================================================== diff -u -rfe0eeacb777596f33a8f05f06c36f95c4b473d8e -r2027920d8ebc25042b825f7ba175a93f725f15dc --- lams_learning/web/includes/javascript/gate-check.js (.../gate-check.js) (revision fe0eeacb777596f33a8f05f06c36f95c4b473d8e) +++ lams_learning/web/includes/javascript/gate-check.js (.../gate-check.js) (revision 2027920d8ebc25042b825f7ba175a93f725f15dc) @@ -1,4 +1,4 @@ -function checkNextGateActivity(finishButtonId, toolSessionId, lessonId, submitFunction){ +function checkNextGateActivity(finishButtonId, toolSessionId, activityId, submitFunction){ // we need bootstrap tooltip, not jQuery UI one // if it has not been isolated yet, try to do it now if (typeof $.fn.bootstrapTooltip != 'function') { @@ -28,7 +28,7 @@ // check if there is a gate after this activity // if so, check if learner can pass $.ajax({ - 'url' : '/lams/learning/learner/isNextGateActivityOpen.do?toolSessionId=' + toolSessionId + '&lessonId=' + lessonId, + 'url' : '/lams/learning/learner/isNextGateActivityOpen.do?toolSessionId=' + toolSessionId + '&activityId=' + activityId, 'cache' : false, 'dataType' : 'json', 'success' : function(response) {