Skip to content

do not repeat help instructions for every guidance group#3173

Merged
briri merged 2 commits intoDMPRoadmap:developmentfrom
nicolasfranck:fix_org_admin_multiple_theme_help
Jun 3, 2022
Merged

do not repeat help instructions for every guidance group#3173
briri merged 2 commits intoDMPRoadmap:developmentfrom
nicolasfranck:fix_org_admin_multiple_theme_help

Conversation

@nicolasfranck
Copy link
Contributor

Context: if you open the template editor, in the org admin interface, and then open a question for editing,
you'll see some themed guidance next to that question.

If you have multiple guidance groups that match the theme
of the current question, then the help text Click the links below to view organisational guidance related to the themes associated with this question. as many times.

The cause is a missing break statement for the outer loop here
I believe the only reason for this loop was set to set variable has_org_themed_guidance to true, right?
In that case that one break is not enough, as there another outer loop also.

I've moved that help text also too.

Unless of course, this has a different purpose.

Copy link
Contributor

@briri briri left a comment

Choose a reason for hiding this comment

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

looks good @nicolasfranck

@briri briri merged commit 6f6dc18 into DMPRoadmap:development Jun 3, 2022
@nicolasfranck nicolasfranck deleted the fix_org_admin_multiple_theme_help branch February 10, 2023 10:00
nicolasfranck added a commit to DMPbelgium/roadmap that referenced this pull request Jun 1, 2023
nicolasfranck added a commit to DMPbelgium/roadmap that referenced this pull request Jun 1, 2023
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.

2 participants