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

Can't create a true/false question: I get --> Could not insert quiz answer "true")! error

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: 1.8
    • Fix Version/s: None
    • Component/s: Questions
    • Labels:
      None
    • Environment:
      moodle 1.8+
      sunos
      mysql database
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_18_STABLE

      Description

      When i make a new true/false question, i get error: Could not insert quiz answer "true")!
      Adding an echo to the truefalse/questiontype.php database send me the error --> Column 'fraction' cannot be null

      I think that the problem has in the new variable correctaswer, that send 'null' to the fraction:

      $true->fraction = $question->correctanswer;

      All tables are correct.
      Any idea?

      Raül

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: