Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questionnaire composition - Loop in host questionnaire based on referenced loop not working #669

Closed
romaintailhurat opened this issue Apr 12, 2023 · 4 comments · Fixed by InseeFr/Pogues-Back-Office#160
Assignees

Comments

@romaintailhurat
Copy link
Collaborator

No description provided.

@romaintailhurat
Copy link
Collaborator Author

To be worked on after a pass on Eno

@nsenave
Copy link

nsenave commented Apr 27, 2023

When importing a questionnaire ("external element") in the front app, loops of this questionnaire are also imported in the UI.

The issue: if the used defined a "linked loop" in the host questionnaire, based on a loop which come from a referenced questionnaire, the back doesn't set this linked loop scope's correctly.

@nsenave nsenave changed the title Questionnaire composition - Referenced loop on host loop not working Questionnaire composition - Loop in host questionnaire based on referenced loop not working Apr 27, 2023
@nsenave
Copy link

nsenave commented Apr 27, 2023

Actually seems that the de-refrencing process make the linked loop disappear in the output, working on it.

@nsenave
Copy link

nsenave commented Apr 27, 2023

It was a dumb mistake: when there are loops in a referenced questionnaire, the method was setting a new list of loops in the host (removing its own loops). (The problem was more generic than a linked loop issue.)

InseeFr/Pogues-Back-Office#160

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 a pull request may close this issue.

2 participants