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

Delete glossary - fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Glossary
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      Deleting glossary fails in current HEAD:

      Error writing to database

      More information about this error
      Debug info: ERROR: invalid input syntax for integer: "glossary_entry"
      DELETE FROM coremdl_comments WHERE contextid=$1 AND commentarea=$2 AND itemid IN (SELECT id FROM coremdl_glossary_entries WHERE glossaryid = $3)
      [array (
      0 => '6',
      1 => '80',
      2 => 'glossary_entry',
      )]
      Stack trace:

      • line 381 of /lib/dml/moodle_database.php: dml_write_exception thrown
      • line 227 of /lib/dml/pgsql_native_moodle_database.php: call to moodle_database->query_end()
      • line 1039 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->query_end()
      • line 199 of /mod/glossary/lib.php: call to pgsql_native_moodle_database->delete_records_select()
      • line 135 of /course/mod.php: call to glossary_delete_instance()

        Attachments

          Activity

            People

            • Assignee:
              quen Sam Marshall
              Reporter:
              quen Sam Marshall
              Tester:
              Nobody
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                24/Nov/10