Fix CGS form when unsafe plugins are installed
@@ -52,12 +52,12 @@ f.section(title:_("Hidden security warnings")) {
table(width:"100%") {
descriptor.applicableWarnings.each { warning ->
- if (warning.type == hudson.model.UpdateSite.Warning.Type.CORE) {
+ if (warning.type == hudson.model.UpdateSite.WarningType.CORE) {
printEntry(warning,
_("warning.core", warning.message),
!descriptor.isIgnored(warning))
}
- else if (warning.type == hudson.model.UpdateSite.Warning.Type.PLUGIN) {
+ else if (warning.type == hudson.model.UpdateSite.WarningType.PLUGIN) {
def plugin = descriptor.getPlugin(warning)
printEntry(warning,
_("warning.plugin", plugin.displayName, warning.message),
