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

function glossary_search doesn't work correctly in postgreSQL

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.8.5, 1.9.1
    • 1.8.4, 1.9
    • Glossary
    • None
    • Linux, php 5.2, postgreSQL 8.2.6
    • PostgreSQL
    • MOODLE_18_STABLE, MOODLE_19_STABLE
    • MOODLE_18_STABLE, MOODLE_19_STABLE

      Calling function glossary_search with extended parameter set to 0 doesn't work correctly on postgreSQL.

      At line 1070 in glossary/lib.php the variable $definitionsearch is set to 0

      if ( !$extended ) {
      $definitionsearch = "0";
      }

      but postgreSQL doesn't interpreter 0 as false (http://www.postgresql.org/docs/8.2/interactive/datatype-boolean.html)

            stronk7 Eloy Lafuente (stronk7)
            alberico anobile Alberico Anobile (Inactive)
            Petr Skoda Petr Skoda
            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.