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

Add missing preventsubmissionnotingroup field in mod_assign_get_assignments

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1, 3.2
    • Fix Version/s: 3.2
    • Component/s: Assignment
    • Testing Instructions:
      Hide
      1. Create one or more courses with one or more assignments.
      2. As admin, enable "Mobile services": Plugins ► Web Services ► Mobile
      3. Create a Token for the student user.
        • Click on Site administration ► Plugins ► Web services ► Manage tokens
      4. Next, you can do a CURL REST call simulating a WS client with the student user.
        • You need to replace the wstoken, courseids array (the ids of the created courses) and the URL of your moodle instance.

          curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=mod_assign_get_assignments&courseids[]=3&courseids[]=4&wstoken=5b6154a56566a194f60f7f395f235179' --compressed

      5. Confirm that field preventsubmissionnotingroup exists in all assignments.
      Show
      Create one or more courses with one or more assignments. As admin, enable "Mobile services": Plugins ► Web Services ► Mobile Create a Token for the student user. Click on Site administration ► Plugins ► Web services ► Manage tokens Next, you can do a CURL REST call simulating a WS client with the student user. You need to replace the wstoken, courseids array (the ids of the created courses) and the URL of your moodle instance. curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=mod_assign_get_assignments&courseids[]=3&courseids[]=4&wstoken=5b6154a56566a194f60f7f395f235179' --compressed Confirm that field preventsubmissionnotingroup exists in all assignments.
    • Affected Branches:
      MOODLE_31_STABLE, MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_32_STABLE
    • Pull Master Branch:
      MDL-54855-master

      Description

      This field is missing in the current external function

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  5/Dec/16