Skip to content

Commit

Permalink
JavaScript error when showing a FormException after Apply is clicked.…
Browse files Browse the repository at this point in the history
… Related to JENKINS-20772 but probably not the same.
  • Loading branch information
jglick committed Dec 23, 2013
1 parent 833c423 commit 9f23c0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/hudson/model/Descriptor.java
Expand Up @@ -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.
Expand Down

0 comments on commit 9f23c0b

Please sign in to comment.