Commit 3a1f7160 authored by Romain Courteaud's avatar Romain Courteaud Committed by Łukasz Nowak

erp5_web_monitoring: Avoid redirection in render

It's a workaround for issue in monitor resulting with infinite recursion after
clicking delete button.
parent 1b6dcf48
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
.declareAcquiredMethod("notifySubmitted", 'notifySubmitted') .declareAcquiredMethod("notifySubmitted", 'notifySubmitted')
.declareMethod("render", function (options) { .declareMethod("render", function (options) {
return this.remove(options);
})
.declareJob("remove", function (options) {
var gadget = this; var gadget = this;
return gadget.notifySubmitting() return gadget.notifySubmitting()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment