Commit 0d05039b authored by Dietmar Maurer's avatar Dietmar Maurer

FirewallRule: do not send errors back to server, remove editor reference

parent 098c951a
......@@ -416,6 +416,7 @@ Ext.define('PVE.FirewallRules', {
var pos = rule.pos;
delete rule.pos;
delete rule.errors;
PVE.Utils.API2Request({
url: me.base_url + '/' + pos.toString(),
......@@ -423,11 +424,7 @@ Ext.define('PVE.FirewallRules', {
params: rule,
waitMsgTarget: me,
failure: function(response, options) {
if (editor) {
editor.form.markInvalid(response.result.errors);
} else {
Ext.Msg.alert(gettext('Error'), response.htmlStatus);
}
Ext.Msg.alert(gettext('Error'), response.htmlStatus);
},
callback: function() {
me.store.load();
......
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