fix bug #756: force macro setting to emtpy string when user erases the content

This commit is contained in:
Dietmar Maurer 2015-10-15 17:38:56 +02:00
parent 24bf5bd4d4
commit aa0b406653

View File

@ -59,7 +59,7 @@ Ext.define('PVE.FirewallRulePanel', {
// hack: editable ComboGrid returns nothing when empty, so we need to set ''
// Also, disabled text fields return nothing, so we need to set ''
Ext.Array.each(['source', 'dest', 'proto', 'sport', 'dport'], function(key) {
Ext.Array.each(['source', 'dest', 'proto', 'sport', 'dport', 'macro'], function(key) {
if (values[key] === undefined) {
values[key] = '';
}