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

Add Course category to new course request

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.7.2, 1.8, 2.4
    • Fix Version/s: 2.4
    • Component/s: Course
    • Labels:
    • Testing Instructions:
      Hide

      Test pre-requisites

      • Testing preferably across the DB types as there is added field.
      • Do not upgrade your Moodle, you'll have to test the upgrade script during the first test
      • A manager on a site level
      • Remove the capability moodle/course:changecategory from the manager on a site level
      • Create a few categories
      • Enable course requests enablecourserequests
      • Set the default category (defaultrequestcategory) to something else than Miscellaneous
      • Create a course request called 'I was here before'

      Test 1

      1. Upgrade Moodle to the latest
      2. As an admin, check the page course/pending.php
      3. Make sure that the course request 'I was here before' has the default category
      4. As a user, create 3 other course requests (course/request.php) with different categories than the default one
      5. As an admin, back in course/pending.php, make sure you can see the categories of the requests
      6. Approve 'I was here before' and make sure the category set is the default one
      7. Approve another request make sure the category set is the right one
      8. Login as your manager and go to course/pending.php
      9. Make sure the category displayed is now the default one, not the one set when the course request was created
      10. Approve one of them, and make sure it is created under the default category
      11. As an admin, give the permission defaultrequestcategory to your manager
      12. Back with your manager, make sure you can now approve the course request with the category it was requested with

      Test 2

      1. Install a new instance of the latest version of Moodle
      2. Make sure the install works
      3. Create a category
      4. Enable the course requests
      5. Make sure you can create a new course request in the new category
      6. Make sure the admin can see the new category in the pending request page
      Show
      Test pre-requisites Testing preferably across the DB types as there is added field. Do not upgrade your Moodle, you'll have to test the upgrade script during the first test A manager on a site level Remove the capability moodle/course:changecategory from the manager on a site level Create a few categories Enable course requests enablecourserequests Set the default category ( defaultrequestcategory ) to something else than Miscellaneous Create a course request called 'I was here before' Test 1 Upgrade Moodle to the latest As an admin, check the page course/pending.php Make sure that the course request 'I was here before' has the default category As a user, create 3 other course requests ( course/request.php ) with different categories than the default one As an admin, back in course/pending.php , make sure you can see the categories of the requests Approve 'I was here before' and make sure the category set is the default one Approve another request make sure the category set is the right one Login as your manager and go to course/pending.php Make sure the category displayed is now the default one, not the one set when the course request was created Approve one of them, and make sure it is created under the default category As an admin, give the permission defaultrequestcategory to your manager Back with your manager, make sure you can now approve the course request with the category it was requested with Test 2 Install a new instance of the latest version of Moodle Make sure the install works Create a category Enable the course requests Make sure you can create a new course request in the new category Make sure the admin can see the new category in the pending request page
    • Affected Branches:
      MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-8307-master

      Description

      In course request form, the ability to also suggest a existing course category (eg. via dropdown menu) would be advantageous. The default category for requested courses should be proposed as the default choice, but i can think of many instances where choosing the correct category would be good.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  3/Dec/12