-
Notifications
You must be signed in to change notification settings - Fork 15
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
IBX-8075: User (group) re-selection not possible after failed role assignment #1244
Conversation
tischsoic
commented
Apr 15, 2024
•
edited
Loading
edited
🎫 Issue | IBX-8075 |
---|
9a7ec2d
to
280fab4
Compare
{% set items_map = form.users.vars.data|reduce((output, user) => output|merge({ | ||
"{{user.content.versionInfo.contentInfo.id}}": user.id | ||
}), {}) %} | ||
{% set items_map = form.users.vars.data|reduce((output, user) => output + { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: We have to use +
to avoid numerical indexes reset caused by |merge
ref. twigphp/Twig#2741 (comment)
"{{user.content.versionInfo.contentInfo.id}}": user.id | ||
}), {}) %} | ||
{% set items_map = form.users.vars.data|reduce((output, user) => output + { | ||
(user.content.versionInfo.contentInfo.id): user.id, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: “{{ some_variable }}“
solution does not work, variable should be surrounded with parentheses.
Quality Gate passedIssues Measures |
Merged up:
|