Navigation zurück und erneute Antwort erzeugt neue answer
Eigentlich sollte die alte answer geändert werden
Reproduzierbar:
Test-Formular mit folgender structure
:
{"questions": [{"id": "e82c80a0-108b-471b-830f-34e9a1f41c1c"}, {"id": "26512edf-61de-42d3-8bc1-fcf4133a6fd2", "rules": [{"question": "e82c80a0-108b-471b-830f-34e9a1f41c1c", "condition": "value.selected == 'bar'"}]}, {"id": "dd58c53c-ad8c-45a3-98f4-0a85376bfe53", "rules": [{"question": "e82c80a0-108b-471b-830f-34e9a1f41c1c", "condition": "value.selected == 'baz'"}]}]}
- Erste Frage mit Option b beantworten
- Zurück
- Alte Antwort ist nicht vorausgewählt
- Erste Frage mit Option c beantworten
- http://localhost:8080/api/application/{applicationid}/question/e82c80a0-108b-471b-830f-34e9a1f41c1c/answer aufrufen
Ergebnis nach mehrfachem durchführen:
[
{
"id": "3191fc56-310a-49d7-86a7-652f90ae0b7a",
"application": "55e38b7c-099c-469e-81cc-baf9b2ccddfe",
"question": "e82c80a0-108b-471b-830f-34e9a1f41c1c",
"value": {
"selected": "bar"
},
"next_question": "26512edf-61de-42d3-8bc1-fcf4133a6fd2",
"prev_question": null
},
{
"id": "da0a4121-3614-4000-9afd-c7a048b499f4",
"application": "55e38b7c-099c-469e-81cc-baf9b2ccddfe",
"question": "e82c80a0-108b-471b-830f-34e9a1f41c1c",
"value": {
"selected": "baz"
},
"next_question": "26512edf-61de-42d3-8bc1-fcf4133a6fd2",
"prev_question": null
},
{
"id": "22499c43-b33a-4707-b440-00f82908f00c",
"application": "55e38b7c-099c-469e-81cc-baf9b2ccddfe",
"question": "e82c80a0-108b-471b-830f-34e9a1f41c1c",
"value": {
"selected": "bar"
},
"next_question": "26512edf-61de-42d3-8bc1-fcf4133a6fd2",
"prev_question": null
},
{
"id": "9f791ba9-ca1d-4c67-b769-ff1caa6072cd",
"application": "55e38b7c-099c-469e-81cc-baf9b2ccddfe",
"question": "e82c80a0-108b-471b-830f-34e9a1f41c1c",
"value": {
"selected": "baz"
},
"next_question": "26512edf-61de-42d3-8bc1-fcf4133a6fd2",
"prev_question": null
},
{
"id": "44257525-44ae-49be-8c4f-e0baf2ee3463",
"application": "55e38b7c-099c-469e-81cc-baf9b2ccddfe",
"question": "e82c80a0-108b-471b-830f-34e9a1f41c1c",
"value": {
"selected": "foo"
},
"next_question": "26512edf-61de-42d3-8bc1-fcf4133a6fd2",
"prev_question": null
},
{
"id": "4675ffd2-032f-4656-a561-02113ec7914f",
"application": "55e38b7c-099c-469e-81cc-baf9b2ccddfe",
"question": "e82c80a0-108b-471b-830f-34e9a1f41c1c",
"value": {
"selected": "bar"
},
"next_question": "26512edf-61de-42d3-8bc1-fcf4133a6fd2",
"prev_question": null
},
{
"id": "9ef56ef4-978c-4ca6-9899-83dba90ae36a",
"application": "55e38b7c-099c-469e-81cc-baf9b2ccddfe",
"question": "e82c80a0-108b-471b-830f-34e9a1f41c1c",
"value": {
"selected": "baz"
},
"next_question": "26512edf-61de-42d3-8bc1-fcf4133a6fd2",
"prev_question": null
}
]
Edited by Simon Marquardt