]> git.proxmox.com Git - pve-manager.git/commit
ui: iso selector: disable all fields to avoid bogus validation
authorFiona Ebner <f.ebner@proxmox.com>
Mon, 4 Dec 2023 09:29:56 +0000 (10:29 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 4 Dec 2023 15:47:05 +0000 (16:47 +0100)
commitac7127388f1a0d8b1a254a618a53f71f15cb2125
treea0f9279a08e16b70b84e8dd29e6b9d2e3fb23e05
parent8113229eb7ef0f85d3277209304984304eceaf54
ui: iso selector: disable all fields to avoid bogus validation

The validation logic of the inner fields from the ISO selector was not
disabled, so a user would need to select a valid storage and ISO file
before being able to make any other choice for the general CD-ROM
drive source (no-media or physical-drive).

Call the parent method to ensure all the inner fields get actually
disabled so that their validators also get disarmed if not relevant.

Reported in the communiy forum:
https://forum.proxmox.com/threads/136960/post-611704

Fixes: fc7b556d ("ui: refactor iso-selector out of the cd input panel")
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
 [ TL: add more background to commit message/subject ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/form/IsoSelector.js