Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-10999 Moodle 3.4 QA testing
  3. MDLQA-11257

CLONE - Modules are prevented from appearing on 'Add...' dropdowns

    XMLWordPrintable

    Details

      Description

      1. Go to 'Administration > Site administration > Plugins > Activity modules > Manage activities'
      2. Make sure all the modules are enabled (eye open)
      3. Go to a course main page. Turn editing on.
      4. Disable the activity chooser dialogue from 'User preferences > Course preferences > Enable activity chooser'
      5. Open the dropdown menu to add a resource and select URL
      6. Add a URL with whatever settings you want and go back to course
      7. Enable the activity chooser dialogue from 'User preferences > Course preferences > Enable activity chooser'
      8. Go back to the course and click on 'Add an activity or resource' and make sure URL is present under 'Resources'
      9. Edit /mod/url/lib.php. In the function url_supports() replace:

          case FEATURE_MOD_ARCHETYPE:           return MOD_ARCHETYPE_RESOURCE;
      

      with

          case FEATURE_MOD_ARCHETYPE:           return MOD_ARCHETYPE_SYSTEM;
      

      10. Disable the activity chooser dialogue from 'User preferences > Course preferences > Enable activity chooser'
      11. Go back to the course and make sure that URL is not listed in either the 'Activity' or 'Resource' dropdown menus
      12. Enable the activity chooser dialogue from 'User preferences > Course preferences > Enable activity chooser'
      13. Make sure that URL is not listed when clicking on 'Add an activity or resource'
      14. Make sure that the previously added URL resource is still visible and editable

        Attachments

        1. screenshot-1.png
          screenshot-1.png
          20 kB
        2. screenshot-2.png
          screenshot-2.png
          15 kB
        3. screenshot-3.png
          screenshot-3.png
          18 kB
        4. screenshot-4.png
          screenshot-4.png
          77 kB
        5. screenshot-5.png
          screenshot-5.png
          31 kB

          Activity

            People

            Assignee:
            lsansone Luiggi Sansonetti
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: