Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-61709

Student name passed into SCORM ignores middlename

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3.5, 3.4
    • Fix Version/s: 3.5
    • Component/s: SCORM
    • Labels:
    • Testing Instructions:
      Hide
      1. Go to "Site administration / Plugins / Activity modules / SCORM package"
      2. Under the "Admin settings" section untick "Disable SCORM standards mode"
      3. Tick "Activate API debug and tracing (set the capture mask with apidebugmask)"
      4. Save the changes.
      5. Go to "Site administration / Users / Permissions / User policies"
      6. Set the "Full name format" to something like "firstname middlename lastname"
      7. Save the changes.
      8. Create a course
      9. Enrol users to this course
      10. Edit the profile and set a middle name for one or more of your users enrolled in this course.
      11. Create a SCORM package activity and upload the "RuntimeMinimumCalls_SCORM12.zip" package located in your moodle instance's "mod/scorm/tests/packages" folder.
      12. Log in as a user with middle name set.
      13. Go to the SCORM activity and enter. (_You will need to enable popups on your browser for your moodle instance. If you get popups blocked, reload the page again. The "SCORM Debugging interface" browser window should come up.)
      14. Select "cmi.core.student_name" for "Select Data Model Element to Get or Set"
      15. Click the "LMSGetValue()" button.
      16. Under the "Result:" text area, confirm that you see the user's full name in the "firstname middlename lastname" format.

      Post test: Ensure you close the SCORM Debugging interface window before you start the test for other branches.

       

      Show
      Go to " Site administration / Plugins / Activity modules / SCORM package " Under the " Admin settings " section untick " Disable SCORM standards mode " Tick " Activate API debug and tracing (set the capture mask with apidebugmask) " Save the changes. Go to " Site administration / Users / Permissions / User policies " Set the " Full name format " to something like " firstname middlename lastname " Save the changes. Create a course Enrol users to this course Edit the profile and set a middle name for one or more of your users enrolled in this course. Create a SCORM package activity and upload the " RuntimeMinimumCalls_SCORM12.zip " package located in your moodle instance's " mod/scorm/tests/packages " folder. Log in as a user with middle name set. Go to the SCORM activity and enter. (_You will need to enable popups on your browser for your moodle instance. If you get popups blocked, reload the page again. The " SCORM Debugging interface " browser window should come up.) Select " cmi.core.student_name " for " Select Data Model Element to Get or Set " Click the " LMSGetValue() " button. Under the " Result: " text area, confirm that you see the user's full name in the " firstname middlename lastname " format. Post test: Ensure you close the SCORM Debugging interface window before you start the test for other branches.  
    • Affected Branches:
      MOODLE_33_STABLE, MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_35_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-61709-scorm-student-fullnamedisplay

      Description

      The student name passed into the module is generated as $USER->lastname .', '. $USER->firstname and thus ignores the fullnamedisplay. 

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                17/May/18