Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-37394 SCORM: Aicc direct url fails with new nav as it has a singl…

…e sco with no children - allow these to be navigated correctly.
  • Loading branch information...
commit 1e503b8925bea1d7b9e20e681742530e35ff93b7 1 parent d63a406
@danmarsden danmarsden authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  mod/scorm/module.js
View
3  mod/scorm/module.js
@@ -527,6 +527,9 @@ M.mod_scorm.init = function(Y, hide_nav, hide_toc, toc_title, window_name, launc
// finally activate the chosen item
var scorm_first_url = tree.getRoot().children[0];
+ if (scorm_first_url == null) { // This is probably a single sco with no children (AICC Direct uses this).
+ scorm_first_url = tree.getRoot();
+ }
scorm_first_url.title = scoes_nav[launch_sco].url;
scorm_activate_item(scorm_first_url);
Please sign in to comment.
Something went wrong with that request. Please try again.