]> git.proxmox.com Git - pve-manager.git/commit
Recheck field validation after manually enabling the input field of a ComboGrid
authorEmmanuel Kasper <e.kasper@proxmox.com>
Mon, 11 Apr 2016 12:35:58 +0000 (14:35 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 12 Apr 2016 15:10:50 +0000 (17:10 +0200)
commit58e1cdc0a6885be1dbe6d7ecef8ae4dbe7c10ef6
tree868ffc3b94776358a4ba43e4daa9531f55a855f3
parentd1918d1bf69ca812e5d2935e3adaeb92dc22d3c9
Recheck field validation after manually enabling the input field of a ComboGrid

Calling setDisabled(true) on a component makes it valid, but calling setDisabled(false) afterwards did not retrigger a validation check

This fixes a serious bug which was happening in the following
conditions, for instance in the template tab of LXC Wizard:
1) user selects a storage
2) this triggers a reload of a related combogrid
3) this combogrid is marked valid, although its value is empty and it had allowedBlank: false
www/manager6/form/ComboGrid.js