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

Add Course category to new course request

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.4
    • 1.7.2, 1.8, 2.4
    • Course
    • MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_24_STABLE
    • MOODLE_24_STABLE
    • MDL-8307-master
    • 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

      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.

            fred Frédéric Massart
            mina Nicolas Martignoni
            Rajesh Taneja Rajesh Taneja
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Michael de Raadt Michael de Raadt
            Votes:
            5 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.