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

admin blocks page no longe shows the number of blocks accurately

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8, 1.9, 2.0
    • Fix Version/s: 1.9, 2.0
    • Component/s: Blocks
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE, MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE

      Description

      We now can place blocks in mymoodle and blogs page and tag pages. We used to list the number of block instances of each block in the admin blocks page and link to the course search page, which in turn displays all the courses with these blocks installed. So it used to be that the number of instances == number of instances in courses. After fixing MDL-11167 we discovered the problem of non course instances being referenced. I have taken out the number of non course blocks as a temporary measure, however it gives somewhat an inaccurate picture of the number of each blocks system wide.

      Proposed solution

      1) we add another column to show ALL instances, and keep the existing column and rename it to "course instances" and keep the link
      2) we listing the accurate number of all block instances, but only put a link if there are at least one course with this block installed. On the course search page, we just display the courses with the block installed. So the page might say 3 instances but with no links.

        Attachments

          Activity

            People

            • Assignee:
              lazyfish Yu Zhang
              Reporter:
              lazyfish Yu Zhang
              Tester:
              Nobody
              Participants:
              Component watchers:
              Adrian Greeve, Mihail Geshoski, Peter Dias
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                3/Mar/08