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

OBGM-714 Approve request label broken + no flash message when adding APPROVE_REQUEST activity #4364

Merged
merged 3 commits into from
Nov 1, 2023

Conversation

kchelstowski
Copy link
Collaborator

…… (#4277)

This one seems to have been skipped while cherry-picking request approval PRs into Grails 3.
It's #4277 that I've cherry-picked now and has been skipped here: #4357

#4277)

* OBPIH-5768 Add request approval supported activity to the Location domain

* OBPIH-5798 Remove validation for request approval supported activity, and instead return an information message

* OBPIH-5798 Render list of messages using flash.messages

* OBPIH-5798 Create RenderMessageTagLib which handles rendering of messages passed by flash.message

* OBPIH-5798 Move renderMessage to MessageTagLib

* OBPIH-5798 Use APPROVE_REQUEST Activity code instead of REQUEST_APPROVAL

---------

Co-authored-by: Darek Rodzewicz <[email protected]>
(cherry picked from commit 19bf7ec)
Copy link
Collaborator

@alannadolny alannadolny left a comment

Choose a reason for hiding this comment

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

Nice catch!

Copy link
Member

@jmiranda jmiranda left a comment

Choose a reason for hiding this comment

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

I didn't really like this solution when it was implemented so I think we should try to fix it in this PR. The solution is to use the raw codec https://blog.mrhaki.com/2013/11/grails-goodness-generating-raw-output.html

<g:if test="${flash.message}">
    <div class="message">${raw(flash.message)}</div>
</g:if>

@jmiranda
Copy link
Member

jmiranda commented Nov 1, 2023

Here's a screenshot from the latest version
image

@jmiranda jmiranda merged commit 381481a into feature/upgrade-to-grails-3.3.10 Nov 1, 2023
1 check passed
@jmiranda jmiranda deleted the OBGM-714 branch November 1, 2023 19:44
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.

None yet

3 participants