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

Conditional activities don't behave same in ajax and non-ajax mode.

    Details

    • Testing Instructions:
      Hide
      1. Turn on conditional activities and enable AJAX mode.
      2. Visit a course and create an activity that is set 'visible to students' but has a date restriction in future
      3. Visit the course page and check activity, is should be grey and availability information should be grey as well.
      4. Click hide button and activity is greyed and available information is hidden
      5. Click show button and activity is still greyed and available information is shown
      6. Visit a course and create an activity that is set 'visible to students' but has a date restriction in past
      7. Visit the course page and check activity, is should be active link, but availability information should be grey.
      8. Click hide button and activity is greyed and available information is hidden
      9. Click show button and activity is active and available information is shown
      Show
      Turn on conditional activities and enable AJAX mode. Visit a course and create an activity that is set 'visible to students' but has a date restriction in future Visit the course page and check activity, is should be grey and availability information should be grey as well. Click hide button and activity is greyed and available information is hidden Click show button and activity is still greyed and available information is shown Visit a course and create an activity that is set 'visible to students' but has a date restriction in past Visit the course page and check activity, is should be active link, but availability information should be grey. Click hide button and activity is greyed and available information is hidden Click show button and activity is active and available information is shown
    • Affected Branches:
      MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE
    • Pull Master Branch:
      wip-mdl-36131

      Description

      In AJAX mode with conditional activities on, click on show/hide button and nothing happens at first click.
      On second click activity hide icon is not in sync with dimmed text. Also, availability information is not hidden when activity is hidden.

      NON-AJAX Mode, which should be same in AJAX mode.

      1. Turn on conditional activities and disable AJAX mode.
      2. Visit a course and create an activity that is set 'visible to students' but has a date restriction in future
      3. Visit the course page and check activity, is should be grey and availability information should be grey as well.
      4. Visit a course and create an activity that is set 'visible to students' but has a date restriction in past
      5. Visit the course page and check activity, is should be active link, but availability information should be grey.
      6. Click hide button and activity is greyed and available information is hidden

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    12/Nov/12