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

Section availability display to teachers is not consistent with activity availability

XMLWordPrintable

    • MOODLE_23_STABLE, MOODLE_24_STABLE
    • MOODLE_23_STABLE, MOODLE_24_STABLE
    • MDL-36095-master
    • Hide

      (0. Availability must be enabled in server settings.)

      1. Create a new course with default settings. Enrol a test user as student in the course.
      2. In the first section, create an activity set to be 'available until...' some time in 2003.
      3. Edit settings for the second section to roughly the same ('available until...' 2003). Set the availability information to 'display greyed-out' (note: the default is different for annoying reasons, basically it is not the form default, but because the section already exists in database with the 0 value).
      4. Check the availability message displayed (to admin) against the activity and the section.
      - The two messages should be consistent, along the lines of:
      Restricted: 'Available until 16 October 2003.'

      5. In the third section, add an activity. This time set the 'available from' date to the future.
      6. Edit settings for the fourth section, again to set 'available from' to the future and turn on the 'show greyed-out'.
      - Again the two messages should be consistent.

      7. Log in as the test student.
      - The first activity and section should be totally hidden even though 'show greyed-out' was turned on. (Note: This is a special case for 'available until' - there are comments explaining this in the code. Because 'available until' is normally used in order to reduce clutter from the page, it doesn't make sense to have it appear in that case as students do not need to know that something used to be available. Anyway, it might be weird, but let's be consistent between activities and sections.)
      - The second activity and section should both show with the 'Available from 17 October 2014.' message. (Note this is a slightly shorter message than the one that shows to staff. The distinction is that the staff messages appear even when you personally have access to it, while the student ones only ever appear when appropriate to that student.)

      Show
      (0. Availability must be enabled in server settings.) 1. Create a new course with default settings. Enrol a test user as student in the course. 2. In the first section, create an activity set to be 'available until...' some time in 2003. 3. Edit settings for the second section to roughly the same ('available until...' 2003). Set the availability information to 'display greyed-out' (note: the default is different for annoying reasons, basically it is not the form default, but because the section already exists in database with the 0 value). 4. Check the availability message displayed (to admin) against the activity and the section. - The two messages should be consistent, along the lines of: Restricted: 'Available until 16 October 2003.' 5. In the third section, add an activity. This time set the 'available from' date to the future. 6. Edit settings for the fourth section, again to set 'available from' to the future and turn on the 'show greyed-out'. - Again the two messages should be consistent. 7. Log in as the test student. - The first activity and section should be totally hidden even though 'show greyed-out' was turned on. (Note: This is a special case for 'available until' - there are comments explaining this in the code. Because 'available until' is normally used in order to reduce clutter from the page, it doesn't make sense to have it appear in that case as students do not need to know that something used to be available. Anyway, it might be weird, but let's be consistent between activities and sections.) - The second activity and section should both show with the 'Available from 17 October 2014.' message. (Note this is a slightly shorter message than the one that shows to staff. The distinction is that the staff messages appear even when you personally have access to it, while the student ones only ever appear when appropriate to that student.)

      In section summary teacher can define available from and available to.
      If the date 'available from' is reached the section is available for students. If the date 'available to' is set this is not shown to teachers. Students get no access from this date, but teachers can't see that the section isn't anymore available for students. Teachers see section normaly as available.

            quen Sam Marshall
            ralfh Ralf Hilgenstock
            Damyon Wiese Damyon Wiese
            Sam Hemelryk Sam Hemelryk
            Jason Fowler Jason Fowler
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.