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

OBS-1684 Fix getting FormatTagLib bean in document templates #4455

Merged
merged 1 commit into from
Jan 15, 2024

Conversation

awalkowiak
Copy link
Collaborator

No description provided.

@@ -367,7 +367,7 @@ class FileService {
// Add all reference numbers
shipmentInstance.referenceNumbers.each { ReferenceNumber referenceNumber ->
log.info "Reference number ${referenceNumber?.referenceNumberType} = " + referenceNumber?.identifier
FormatTagLib formatTag = grailsApplication.mainContext.getBean('FormatTagLib')
FormatTagLib formatTag = grailsApplication.mainContext.getBean('org.pih.warehouse.FormatTagLib')
Copy link
Collaborator

Choose a reason for hiding this comment

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

lgtm, but just wanted to show an alternative way to do it:

import org.pih.warehouse.FormatTagLib



FormatTagLib formatTag = grailsApplication.mainContext.getBean(FormatTagLib)

@awalkowiak awalkowiak merged commit baa8f0f into release/0.9.0-hotfix1 Jan 15, 2024
@awalkowiak awalkowiak deleted the OBS-1684 branch January 15, 2024 15:17
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