Skip to content
This repository has been archived by the owner on Sep 7, 2024. It is now read-only.

Commit

Permalink
Fix getting messageSource bean from applicationContext
Browse files Browse the repository at this point in the history
  • Loading branch information
rainboyan committed Jan 9, 2023
1 parent 1561dbf commit deb84c9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@ class FormTagLib implements ApplicationContextAware, InitializingBean, TagLibrar
if (!attrs.containsKey('from')) {
throwTagError("Tag [select] is missing required attribute [from]")
}
def messageSource = grailsAttributes.getApplicationContext().getBean("messageSource")
def messageSource = applicationContext.getBean("messageSource")
def locale = RCU.getLocale(request)
def writer = out
def from = attrs.remove('from')
Expand Down

0 comments on commit deb84c9

Please sign in to comment.