[pve-devel] [PATCH pve-manager] Force setting the Macro combobox to an empty string when the user erases the content

Emmanuel Kasper e.kasper at proxmox.com
Thu Oct 15 12:57:40 CEST 2015


This fixes https://bugzilla.proxmox.com/show_bug.cgi?id=756
---
 www/manager/grid/FirewallRules.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/www/manager/grid/FirewallRules.js b/www/manager/grid/FirewallRules.js
index 17f5411..990656e 100644
--- a/www/manager/grid/FirewallRules.js
+++ b/www/manager/grid/FirewallRules.js
@@ -171,6 +171,7 @@ Ext.define('PVE.FirewallRulePanel', {
 			    me.down('field[name=proto]').setDisabled(false);
 			    me.down('field[name=sport]').setDisabled(false);
 			    me.down('field[name=dport]').setDisabled(false);
+			    me.down('field[name=macro]').value=''; // manually deleting an entry sets to 'undef'
                         } else {
 			    me.down('field[name=proto]').setDisabled(true);
 			    me.down('field[name=proto]').setValue('');
-- 
2.1.4




More information about the pve-devel mailing list