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

global glossary auto linking to glossary on start page is broken after last update

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 1.9.8
    • 1.9.7
    • Glossary
    • None
    • MOODLE_19_STABLE
    • MOODLE_19_STABLE
    • Easy

      After the last changes in showentry.php all glossaries not within the actual course are ignored. No autolinking to global glossaries on the start page works any more.

      The patch below is a workaround to integrate the modules on the start page into the check. For this solution the global glossary must be on the start page - global glossaries in other courses are not working.

      Patch
      Index: showentry.php
      ===================================================================
      RCS file: /cvsroot/moodle/moodle/mod/glossary/showentry.php,v
      retrieving revision 1.40.2.1
      diff -u -r1.40.2.1 showentry.php
      — showentry.php 22 Nov 2009 10:34:56 -0000 1.40.2.1
      +++ showentry.php 3 Dec 2009 09:21:29 -0000
      @@ -43,9 +43,12 @@

      if ($entries) {
      $modinfo = get_fast_modinfo($course);
      + if ($site = get_record("course", "id", 1))

      { + $sitemodinfo = get_fast_modinfo($site); + }

      foreach ($entries as $key => $entry) {
      // make sure the entry is visible

      • if (empty($modinfo->cms[$entry->cmid]->uservisible)) {
        + if (empty($modinfo->cms[$entry->cmid]>uservisible) && empty($sitemodinfo>cms[$entry->cmid]->uservisible)) { unset($entries[$key]); continue; }

            stronk7 Eloy Lafuente (stronk7)
            urshunkler Urs Hunkler
            Nobody Nobody
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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