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

Conditional activities: toggling AND/OR affects nested groups

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7
    • Fix Version/s: 2.7
    • Component/s: Conditional activities
    • Labels:
    • Testing Instructions:
      Hide

      0. Ensure the 'enableavailability' system option is turned on for server.
      1. Edit an activity or section (that doesn't have any conditions already).
      2. Expand the 'Restrict access' fieldset.
      3. Add a date condition, then add a restriction set. Then add 2 more date conditions inside the restriction set.
      4. Change the outer option from 'must match all' to 'must match any.

      EXPECTED: The small grey 'and' for the outer condition should change to 'or' , but the one for the inner condition should remain as 'and'.

      Show
      0. Ensure the 'enableavailability' system option is turned on for server. 1. Edit an activity or section (that doesn't have any conditions already). 2. Expand the 'Restrict access' fieldset. 3. Add a date condition, then add a restriction set. Then add 2 more date conditions inside the restriction set. 4. Change the outer option from 'must match all' to 'must match any. EXPECTED: The small grey 'and' for the outer condition should change to 'or' , but the one for the inner condition should remain as 'and'.
    • Affected Branches:
      MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE
    • Pull Master Branch:
      MDL-45138-master

      Description

      (As demonstrated by Martin D in his keynote at UK Moodle Moot 2014 - sorry! Don't think many people noticed.)

      When you change the AND/OR dropdown for conditional activities, it changes the little text labels that say 'and' or 'or'. If you have nested ones, changing the top-level option changes the text labels (but not the dropdown/actual value) for the inner one too.

      This is a cosmetic flaw - the actual value used is the one in the dropdown.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                12/May/14