Skip to content

Conversation

@armandfardeau
Copy link
Collaborator

@armandfardeau armandfardeau commented Oct 17, 2018

🎩 What? Why?

Fix validation issue on survey sortable question

The previous method did not validate correctly, all questions to be sorted were treated as mandatory questions

This PR solves this problem :
When question is mandatory -> question answers are validated
When question is not mandatory but one the question answers is checked -> question answers are validated

When question is not mandatory and no question answer is checked -> question answers are not validated and empty response is alllowed

📌 Related Issues

📋 Subtasks

  • Add CHANGELOG entry
  • Add tests

📷 Screenshots (optional)

image

@ghost ghost assigned armandfardeau Oct 17, 2018
@ghost ghost added the needs-review label Oct 17, 2018
Copy link

@lu-hamani lu-hamani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works fine. Good to go if checks pass

Copy link

@lu-hamani lu-hamani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before merging translation is needed as shown in the following screenshots. First word of each error messages is in english

screen shot 2018-10-17 at 14 34 38
screen shot 2018-10-17 at 14 34 16

@lu-hamani lu-hamani added this to the Weekly issues milestone Oct 17, 2018
Copy link
Member

@moustachu moustachu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@moustachu moustachu merged commit 0f30736 into 0.12-stable Oct 17, 2018
@ghost ghost removed the needs-review label Oct 17, 2018
@armandfardeau armandfardeau deleted the Fix/surveys-sortable-questions-non-mandatory branch October 17, 2018 22:06
@lu-hamani lu-hamani removed this from the Weekly issues milestone Oct 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants