OpenSourcePolitics / decidim-app

Open Source Politics' Decidim reference implementation
GNU Affero General Public License v3.0
9 stars 12 forks source link

Fix display condition answer option in templates #589

Closed Stef-Rousset closed 2 weeks ago

Stef-Rousset commented 3 weeks ago

:tophat: Description

When in a Questionnaire you create a Question with a Display Condition, you select a question that have 2 choices (Matrix Single option or Multiple options) and set the condition "Equal to" the dropdown list of the Answer option is empty.

:pushpin: Related Issues

Link your PR to an issue

Testing

  1. Create a Questionnaire Template
  2. Create a first mandatory question of Matrix Type Single option with 2 answer choices (cf screenshot one)
  3. Create a 2nd Question with a display condition.
  4. For the condition question, select the 1st question and then for the condition select "Equal to"
  5. Click on the Answer option dropdown list
  6. See that the dropdown list contains the 2 answer options of the first question (cf screenshot two)

Tasks

:camera: Screenshots

ONE =>

one

TWO =>

two