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

Hidden ( Dimmed) Assignments are still visible on the assign index page

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.5
    • Fix Version/s: None
    • Component/s: Assignment
    • Labels:
    • Testing Instructions:
      Hide

      1. Create an assignment
      2. Under Assignment settings, set visibility to Hide
      3. Make sure the assingment is hidden ( dimmed) on the course index page for Teachers and compleltely invisible for student
      4. Click on the Assignments link from the Activities Block from the course page
      5. Assignments are invisible for students as expected but are visible ( not dimmed) for teachers

      In Moodle 2.2, this was dimmed for teachers as we would have expected.

      Show
      1. Create an assignment 2. Under Assignment settings, set visibility to Hide 3. Make sure the assingment is hidden ( dimmed) on the course index page for Teachers and compleltely invisible for student 4. Click on the Assignments link from the Activities Block from the course page 5. Assignments are invisible for students as expected but are visible ( not dimmed) for teachers In Moodle 2.2, this was dimmed for teachers as we would have expected.
    • Workaround:
      Hide

      In Moodle 2.2, this was achieved by setting the class of the anchor tag using the visibility propery of the asignment (/mod/assignment/index.php) :

      //Show dimmed if the mod is hidden
      $class = $cm->visible ? '' : 'class="dimmed"';

      Please look at patch.txt for my proposed solution.

      Show
      In Moodle 2.2, this was achieved by setting the class of the anchor tag using the visibility propery of the asignment (/mod/assignment/index.php) : //Show dimmed if the mod is hidden $class = $cm->visible ? '' : 'class="dimmed"'; Please look at patch.txt for my proposed solution.
    • Affected Branches:
      MOODLE_25_STABLE

      Description

      A minor issue, but it seems to be missing from Moodle 2.5 when there is no reason for it to not be there as it was in Moodle 2.2

      When looking at the assignment index page that displays a list of all assignments , hidden assignments are not greyed out ( dimmed) as it should be.

      Welcome to suggestions on my solution.

      First time at creating a patch file, let me know if anything else is needed.

      Many thanks
      Hittesh

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              hitteshahuja Hittesh
              Participants:
              Component watchers:
              Damyon Wiese, Adrian Greeve, Mihail Geshoski, Peter Dias
            • Votes:
              4 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: