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

Bad forum sql table reference in Global Search

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9
    • Component/s: Global search
    • Labels:
      None
    • Environment:
      Win XP SP2+Apache 2 + PHP 5.2.1
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      Global Search looks quite good in 1.9 (downloaded right now) but in "/search/documents/forum_document.php" line 253 there is a bad reference to forum_discussion "$dicussion = get_record('forum_discussion', 'id', $post->discussion);" witch needs to be patched to forum_discussions otherwise global search for users other than admin does not work.

      It looks also like "$dicussion" should be "$discussion" on LOC 253 and LOC 255...
      Correct?

      thanks

        Attachments

          Activity

            People

            Assignee:
            dougiamas Martin Dougiamas
            Reporter:
            mannotracker ermanno bagnai
            Tester:
            Nobody
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

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