Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-26385 fix enrol/imsenterprise
  3. MDL-29273

Default course summary value using IMS Enterprise makes course unsearchable

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.0, 2.0.1
    • Fix Version/s: None
    • Component/s: Enrolments
    • Labels:
    • Environment:
      Moodle 2.0, Moodle 2.0.1, Moodle 2.0.2 but could be applied to all Moodle versions.
    • Database:
      Any
    • Testing Instructions:
      Hide

      Use the attached XML and import using IMS Enterprise plugin. Try search for any of the courses created.
      Delete course, modify /enrol/imsenterprise/lib.php as specified.

      Add the following at line 363 of /enrol/imsenterprise/lib.php
      $course->summary = ''; // Could possibly use the <full> tag to implement summary but need to watch for NULL?

      Repeat import
      Courses are now searchable.

      Show
      Use the attached XML and import using IMS Enterprise plugin. Try search for any of the courses created. Delete course, modify /enrol/imsenterprise/lib.php as specified. Add the following at line 363 of /enrol/imsenterprise/lib.php $course->summary = ''; // Could possibly use the <full> tag to implement summary but need to watch for NULL? Repeat import Courses are now searchable.
    • Workaround:
      Hide

      If you change the course settings, but don't actually change anything, hit save, the summary field is change from NULL to just nothing. It will be searchable.

      Show
      If you change the course settings, but don't actually change anything, hit save, the summary field is change from NULL to just nothing. It will be searchable.
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_20_STABLE

      Description

      By default the IMS enterprise import does not assign anything to the summary field upon course creation. The database receives a NULL value in this field. For some reason, this prevents a course from being found when a search is performed. Placing a value other than NULL in the summary field fixes this problem.

        Attachments

        1. Course List.jpg
          Course List.jpg
          28 kB
        2. moodle_IMS_course copy.xml
          1.0 kB
        3. Search for course returns no results.jpg
          Search for course returns no results.jpg
          24 kB
        4. Search not NULL.jpg
          Search not NULL.jpg
          22 kB
        5. Summary no NULL.jpg
          Summary no NULL.jpg
          103 kB
        6. summarysupport.patch
          0.6 kB
        7. View of database immediately after course creation.jpg
          View of database immediately after course creation.jpg
          200 kB

          Activity

            People

            Assignee:
            danmarsden Dan Marsden
            Reporter:
            abarbary Adam Barbary
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: