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

Feedback coding error when saving required multichoice question with no options selected.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7
    • Fix Version/s: 2.9.5, 3.0.3
    • Component/s: Feedback
    • Labels:
    • Testing Instructions:
      Hide
      1. Create feedback
      2. Add multichoice question with single select, mark it as required
      3. Add multichoice questions as multiple choice and dropdown, make sure the "Not selected" option is disabled
      4. As student complete feedback, try not to select anything for the first question, make sure you get an error
      5. As student complete feedback, select something, make sure you can submit
      6. As teacher view analysis
      Show
      Create feedback Add multichoice question with single select, mark it as required Add multichoice questions as multiple choice and dropdown, make sure the "Not selected" option is disabled As student complete feedback, try not to select anything for the first question, make sure you get an error As student complete feedback, select something, make sure you can submit As teacher view analysis
    • Affected Branches:
      MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_29_STABLE, MOODLE_30_STABLE
    • Pull Master Branch:
      MDL-44952-master

      Description

      Notice: Undefined offset: 0 in /home/damyonw/Documents/Moodle/integration/master/moodle/mod/feedback/item/multichoice/lib.php on line 581
      Call Stack

      1. Time Memory Function Location
        1 0.0024 413608 {main}

        ( ) ../complete.php:0
        2 0.3400 9135968 feedback_check_values( ) ../complete.php:208
        3 0.3427 9426648 feedback_item_multichoice->check_value( ) ../lib.php:2243

        Attachments

          Activity

            People

            Assignee:
            marina Marina Glancy
            Reporter:
            damyon Damyon Wiese
            Peer reviewer:
            Adrian Greeve
            Integrator:
            Dan Poltawski
            Tester:
            Jun Pataleta
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              14/Mar/16