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

Activity Chooser should better support subtypes

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 2.6
    • Component/s: Usability
    • Labels:
    • Testing Instructions:
      Hide
      • Ensure that the old assignment activity displays in the activity chooser as it currently does.
      • Turn activity chooser off and check that old Assignment appears correctly in add activity dropdown.
      • You can test the new return value from modname_get_types by adding the following to mod/forum/lib.php and then ensuring that Forum still displays in the activity chooser:

        function forum_get_types() {
            return MOD_SUBTYPE_NO_CHILDREN;
        }
        

      Show
      Ensure that the old assignment activity displays in the activity chooser as it currently does. Turn activity chooser off and check that old Assignment appears correctly in add activity dropdown. You can test the new return value from modname_get_types by adding the following to mod/forum/lib.php and then ensuring that Forum still displays in the activity chooser: function forum_get_types() { return MOD_SUBTYPE_NO_CHILDREN; }
    • Affected Branches:
      MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE
    • Pull Master Branch:
      MDL-40248_activityChooserMaster
    • Story Points:
      3
    • Sprint:
      FRONTEND Sprint 5

      Description

      In general we are trying to remove the need for activity module subtypes (which explains why they look so bad on activity chooser in 2.3+). However sometimes they are useful, especially for the case of LTI subtypes - "External tools".

      After some discussion, the plan is this:

      1) If an activity module just has one subtype, then promote the link for that subtype to look like a full activity. This simplifies the interface for users.

      2) If an activity module has two or more subtypes, then promote the module in the UI to a group equal to "Activities" or "Resources". For LTI this would be "External tools" and will show all the subtype icons/links under it.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  18/Nov/13