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

    • Icon: Sub-task Sub-task
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • None
    • 2.0, 2.0.1
    • Enrolments
    • Moodle 2.0, Moodle 2.0.1, Moodle 2.0.2 but could be applied to all Moodle versions.
    • Any
    • MOODLE_20_STABLE
    • 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.
    • Easy
    • 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.

      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.

        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

            danmarsden Dan Marsden
            abarbary Adam Barbary
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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