Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 5d19263
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 5d19263

Please sign in to comment.