adaptlearning / adapt_framework

A toolkit for creating responsive, accessible, multilanguage HTML5 e-learning courses.
https://www.adaptlearning.org/
GNU General Public License v3.0
571 stars 243 forks source link

pageLevelProgress: latest version can prevent course from loading #2399

Closed moloko closed 5 years ago

moloko commented 5 years ago

Subject of the issue/enhancement/features

the latest version of PLP (v4.1.0) causes a script error when the course is 'resumed' from an LMS

Your environment

Steps to reproduce

  1. adapt create course plp-test
  2. cd plp-test && grunt dev && grunt server-scorm
  3. complete some content
  4. refresh page

Expected behaviour

Course should resume successfully

Actual behaviour

Course fails to load with errors in the console

Screenshots (if you can)

2019-03-26 18_06_39-Developer Tools - http___localhost_9001_scorm_test_harness html#_id_co-15

moloko commented 5 years ago

Just to note that I've also seen this same error when previewing a course in the AAT so I don't think it's confined to resuming from LMS