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.

(cherry picked from commit 9f23c0b)
  • Loading branch information
jglick authored and olivergondza committed Jan 9, 2014
1 parent 133f633 commit 5d192634bb968190cb75cb752ed97474c57dc938
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 5d19263

Please sign in to comment.