Skip to content
Permalink
Browse files
JavaScript error when showing a FormException after Apply is clicked.…
… Related to JENKINS-20772 but probably not the same.
  • Loading branch information
jglick committed Dec 23, 2013
1 parent 833c423 commit 9f23c0bdb3a3ed6485e161ff5c57ebba64f88035
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/src/main/java/hudson/model/Descriptor.java
@@ -967,7 +967,7 @@ public String getFormField() {

public void generateResponse(StaplerRequest req, StaplerResponse rsp, Object node) throws IOException, ServletException {
if (FormApply.isApply(req)) {
FormApply.applyResponse("notificationBar.show(" + quote(getMessage())+ ",notificationBar.defaultOptions.ERROR)")
FormApply.applyResponse("notificationBar.show(" + quote(getMessage())+ ",notificationBar.ERROR)")
.generateResponse(req, rsp, node);
} else {
// for now, we can't really use the field name that caused the problem.

0 comments on commit 9f23c0b

Please sign in to comment.