Skip to content

Commit

Permalink
Fixes wrong @ConditionalOnProperty with `grails.web.hiddenmethod.fi…
Browse files Browse the repository at this point in the history
…lter.enabled`

Closes gh-637
  • Loading branch information
rainboyan committed Oct 8, 2024
1 parent e5206da commit 0f4fdf6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public WebMvcConfigurer webMvcConfig(ObjectProvider<GrailsApplication> grailsApp

@Bean
@ConditionalOnMissingBean(HiddenHttpMethodFilter.class)
@ConditionalOnProperty(prefix = "grails.web.hiddenmethod.filter", name = "enabled", matchIfMissing = true)
@ConditionalOnProperty(prefix = "grails.web.hiddenmethod.filter", name = "enabled", havingValue = "true", matchIfMissing = true)
public OrderedHiddenHttpMethodFilter hiddenHttpMethodFilter() {
return new OrderedHiddenHttpMethodFilter();
}
Expand Down

0 comments on commit 0f4fdf6

Please sign in to comment.