OBGM-505 Unable to add items and adjustments to PO#4119
OBGM-505 Unable to add items and adjustments to PO#4119awalkowiak merged 1 commit intofeature/upgrade-to-grails-3.3.10from
Conversation
| <html> | ||
| <head> | ||
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | ||
| <meta name="layout" content="custom" /> |
There was a problem hiding this comment.
This meta tag doesn't apply the layout on those two files. During searching for possible solutions/problems to solve, I found this stackOverflow discussion which is not too much connected to this issue, but I found there g:applyLayout and it works as it should.
| * TODO localized strings? Further discussion at OBGM-343. | ||
| */ | ||
| if ($("#validationCode").val() == 'WARN' && !confirm(_.escape(htmlDecode("${g.message(code: 'orderItem.warningSupplier.label')}")))) { | ||
| if ($("#validationCode").val() == 'WARN' && !confirm(htmlDecode("${g.message(code: 'orderItem.warningSupplier.label')}"))) { |
There was a problem hiding this comment.
Importing the lodash library was throwing an error. After removing it I found there is a reference to global UMD variable. After checking how this message looks like I found that, it's broken:

There was a ticket about the quotes.
After removing this method from lodash I found that this message looks correct:

In the comment above this code is a comment about further discussion/investigation about it.
Here is the ticket
awalkowiak
left a comment
There was a problem hiding this comment.
I am not sure if this is a correct usage of applyLayout in gsp templates, but since it works and unblocks work I am merging it
No description provided.