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

Feedback depend questions bug

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1, 2.2, 2.3.7, 2.4.4, 2.5, 2.6.3, 2.7
    • Fix Version/s: 2.6.4, 2.7.1
    • Component/s: Feedback
    • Labels:
    • Testing Instructions:
      Hide
      1. Activate the feedback module.
      2. Add a Multiple choice question (name=q1, label=q1) with answers "Yes" and "No".
      3. Mark this question as required.
      4. Add a page break.
      5. Add a Short text answer question (name=q2, label=q2) with Dependence item q1 and Dependence value "Yes".
      6. Mark this question as required.
      7. Add a Short text answer question (name=q3, label=q3) with Dependence item q1 and Dependence value "No".
      8. Mark this question as required.
      9. Go to the "Overview" page and answer this feedback with different choices in q1 and ensure on the last page you can successfully submit your answers.
      Show
      Activate the feedback module. Add a Multiple choice question (name=q1, label=q1) with answers "Yes" and "No". Mark this question as required. Add a page break. Add a Short text answer question (name=q2, label=q2) with Dependence item q1 and Dependence value "Yes". Mark this question as required. Add a Short text answer question (name=q3, label=q3) with Dependence item q1 and Dependence value "No". Mark this question as required. Go to the "Overview" page and answer this feedback with different choices in q1 and ensure on the last page you can successfully submit your answers.
    • Affected Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-31998_master

      Description

      Tested with Moodle 2.1.4 and Moodle Moodle 2.2.1+ (Build: 20120301)

      Feedback with depend item does not work as expected.

      Q1 (owncar) do you own a car?*
      yes
      no
      Page break----------------------------
      Q2 (carcolor) what color is your car?* (owncar->yes)
      blue
      black
      red
      Page break----------------------------
      Q3 (label) Survey is finished, you can now submit it.

      scenario #1
      Q1: yes
      Q2: blue (or any other color)
      Q3: Survey is finished, you can now submit it.
      Submit: OK

      scenario #2
      Q2: no
      next screen: no question text is shown, only the Previous page and Next page buttons and a Cancel button.
      Press Next page OR Previous button: error message "Saving failed because missing or false values"

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              grabs Andreas Grabs
              Reporter:
              rezeau Joseph Rézeau
              Peer reviewer:
              Mark Nelson
              Integrator:
              Damyon Wiese
              Tester:
              Adrian Greeve
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              12 Vote for this issue
              Watchers:
              15 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                14/Jul/14