提交 9f23c0bd 编写于 作者: J Jesse Glick

JavaScript error when showing a FormException after Apply is clicked. Related...

JavaScript error when showing a FormException after Apply is clicked. Related to JENKINS-20772 but probably not the same.
上级 833c4232
......@@ -967,7 +967,7 @@ public abstract class Descriptor<T extends Describable<T>> implements Saveable {
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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册