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

SCORM activity's lacking validation for the Availability fields

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0.4, 3.1
    • 3.0.5, 3.1.1
    • SCORM
    • MOODLE_30_STABLE, MOODLE_31_STABLE
    • MOODLE_30_STABLE, MOODLE_31_STABLE
    • MDL-54976-master
    • Hide
      1. Login as admin.
      2. Create a course.
      3. Create a SCORM activity for that course.
      4. Set a proper name for the SCORM activity.
      5. Upload a SCORM package file. Check out http://www.xquestion.com/Examples.html for sample packages.
      6. Expand the Availability section.
      7. Tick the Enable checkboxes for the Available from and Available to fields.
      8. Set a value for Available to with a value that is before Available from.
      9. Click Save and return to course or Save and display.
        • Confirm that a validation error message "You have specified a close date before the open date." is shown.
      10. Set a value for Available to that is equal to or after the Available from field.
      11. Click Save and return to course or Save and display.
        • Confirm that the SCORM activity is successfully created.
      Show
      Login as admin. Create a course. Create a SCORM activity for that course. Set a proper name for the SCORM activity. Upload a SCORM package file. Check out http://www.xquestion.com/Examples.html for sample packages. Expand the Availability section. Tick the Enable checkboxes for the Available from and Available to fields. Set a value for Available to with a value that is before Available from . Click Save and return to course or Save and display . Confirm that a validation error message " You have specified a close date before the open date. " is shown. Set a value for Available to that is equal to or after the Available from field. Click Save and return to course or Save and display . Confirm that the SCORM activity is successfully created.

    Description

      It is possible to create a SCORM activity that has its Available to field before the Available from field.

      To reproduce:

      1. Login as admin.
      2. Create a course.
      3. Create a SCORM activity for that course.
      4. Set a proper name for the SCORM activity.
      5. Upload a SCORM package file. Check out http://www.xquestion.com/Examples.html for sample packages.
      6. Expand the Availability section.
      7. Tick the Enable checkboxes for the Available from and Available to fields.
      8. Set a value for Available to with a value that is before Available from.
      9. Expected
        • The user should not be able to enter a value for Available to that is before Available from and a validation message should be shown.
      10. Actual
        • The user is able to save the activity.

      Attachments

        Issue Links

          Activity

            People

              jpataleta Jun Pataleta
              jpataleta Jun Pataleta
              Jake Dallimore Jake Dallimore
              Dan Poltawski Dan Poltawski
              cameron1729 cameron1729
              Dan Marsden, Matteo Scaramuccia, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                11/Jul/16