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

Error in Choice activity lib.php

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Choice
    • Labels:
      None
    • Environment:
      Any
    • Database:
      Any
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      Cersion 2.0 Choice activity. File choice/lib.php, near line 444.

      The statement:

      $choice_option = $DB->get_record("choice_options", array("id" => $optionid));

      fails in its attempt to get limit information for a choice option.

      In my copy, I have substituted the expression: "$choice->maxanswers[$optionid];" to get the limit number, but the code seems to go out of its way to avoid that for some reason.

        Attachments

          Activity

            People

            Assignee:
            danmarsden Dan Marsden
            Reporter:
            bgray Brian Gray
            Participants:
            Component watchers:
            Dan Marsden, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

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