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

Unable to check out strings into the language customization tool

    Details

    • Database:
      PostgreSQL
    • Testing Instructions:
      Hide

      1. Go to Site administration > Language > Language customization
      2. TEST: make sure you are able to check out strings into the translator without the reported error (would be nice to test at PostgreSQL where this was reported)

      Show
      1. Go to Site administration > Language > Language customization 2. TEST: make sure you are able to check out strings into the translator without the reported error (would be nice to test at PostgreSQL where this was reported)
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-27246-cutomlang-version

      Description

      Since commit bb8b29 the version.php started to use decimal number for version. This leads to problems in the customlang report:

      Debug info: ERROR: invalid input syntax for integer: "2011033002.02"
      INSERT INTO mdl_report_customlang_components (name,version) VALUES($1,$2) RETURNING id
      [array (
      'name' => 'core',
      'version' => '2011033002.02',
      )]
      Stack trace:

      • line 394 of /lib/dml/moodle_database.php: dml_write_exception thrown
      • line 232 of /lib/dml/pgsql_native_moodle_database.php: call to moodle_database->query_end()
      • line 781 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->query_end()
      • line 833 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->insert_record_raw()
      • line 101 of /admin/report/customlang/locallib.php: call to pgsql_native_moodle_database->insert_record()
      • line 48 of /admin/report/customlang/index.php: call to report_customlang_utils::checkout()

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    5/May/11