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

Remove "Enable activity chooser" user preference

    XMLWordPrintable

Details

    • MOODLE_311_STABLE, MOODLE_37_STABLE, MOODLE_39_STABLE
    • MOODLE_311_STABLE
    • MDL-66431-311
    • MDL-66431-master
    • Hide
      1. Before applying a patch
      2. Login as admin
      3. Go to Preference page http://YOURMOODLE/user/preferences.php
      4. Click "Course preferences" link
      5. Untick Enable activity chooser checkbox and save changes
      6. Create a course
      7. Turn editing on
      8. Ensure you see separate Add an activity... and Add a resource... links
      9. Ensure this query in db returns some data

        select * from mdl_user_preferences where name = 'usemodchooser' and value = '0';
        

      10. Apply a patch
      11. Go to Preference page http://YOURMOODLE/user/preferences.php
      12. Ensure Course preferences link is not displayed
      13. Go to http://YOURMOODLE/navigation/user/course.php?id=USERID&course=1 where USERID is your USERID
      14. Ensure page is not found
      15. Create a course
      16. Turn editing on
      17. Ensure you can see Add an activity or resource link but not separate Add an activity... Add a resource link
      18. Ensure this query in db does not return any data

        select * from mdl_user_preferences where name = 'usemodchooser';
        

      19. Now, in an editor of your choice, edit the file 'theme/boost/config.php'
      20. Near the top, below the 'require_once' call, add:

        $THEME->enablecourseajax = false;
        

      21. Save that file
      22. Go to a course page
      23. Ensure you see separate Add an activity... and Add a resource... links
      24. Ensure the following warning is displayed if debugging is enabled: "non-js dropdowns are deprecated."
      Show
      Before applying a patch Login as admin Go to Preference page http://YOURMOODLE/user/preferences.php Click "Course preferences" link Untick Enable activity chooser checkbox and save changes Create a course Turn editing on Ensure you see separate Add an activity... and Add a resource... links Ensure this query in db returns some data select * from mdl_user_preferences where name = 'usemodchooser' and value = '0' ; Apply a patch Go to Preference page http://YOURMOODLE/user/preferences.php Ensure Course preferences link is not displayed Go to http://YOURMOODLE/navigation/user/course.php?id=USERID&course=1 where USERID is your USERID Ensure page is not found Create a course Turn editing on Ensure you can see Add an activity or resource link but not separate Add an activity... Add a resource link Ensure this query in db does not return any data select * from mdl_user_preferences where name = 'usemodchooser' ; Now, in an editor of your choice, edit the file 'theme/boost/config.php' Near the top, below the 'require_once' call, add: $THEME->enablecourseajax = false ; Save that file Go to a course page Ensure you see separate Add an activity... and Add a resource... links Ensure the following warning is displayed if debugging is enabled: "non-js dropdowns are deprecated."
    • Moppies Kanban

    Description

      The setting Enable activity chooser in Preferences / Course preferences allows teachers the option of using the very old resource and activity drop-down menus. However, the setting is available for all users (not only teachers), despite it having no relevance for non-teachers. To avoid confusion and unnecessary clutter, it would be great if this setting could be removed.

      Attachments

        Issue Links

          Activity

            People

              ilyatregubov Ilya Tregubov
              tsala Helen Foster
              Ferran Recio Ferran Recio
              Sara Arjona (@sarjona) Sara Arjona (@sarjona)
              Gladys Basiana Gladys Basiana
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona), Huong Nguyen, Barbara Ramiro, Bas Brands, Mathew May
              Votes:
              21 Vote for this issue
              Watchers:
              19 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                17/May/21

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 week, 4 days, 1 hour, 10 minutes
                  1w 4d 1h 10m