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

SCORM activity's lacking validation for the Availability fields

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.4, 3.1
    • Fix Version/s: 3.0.5, 3.1.1
    • Component/s: SCORM
    • Labels:
    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE
    • Pull Master Branch:
      MDL-54976-master

      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

              Assignee:
              jpataleta Jun Pataleta
              Reporter:
              jpataleta Jun Pataleta
              Peer reviewer:
              Jake Dallimore
              Integrator:
              Dan Poltawski
              Tester:
              cameron1729
              Participants:
              Component watchers:
              Damyon Wiese, Dan Marsden, Matteo Scaramuccia, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/Jul/16