From 3c46a9a77662b1cd89f276db6038de4c5076e26c Mon Sep 17 00:00:00 2001 From: Emmanuel Kasper Date: Mon, 11 Apr 2016 14:35:59 +0200 Subject: [PATCH] Do not disable a invalid previous tab, as this make the tab fields valid disable_at() iterates over all the fields of the previously selected tab and disables them however disabling an input field makes it valid for validation purposes. I can't see a reason why disabling the tab fields is needed, since the tab already hidden and after testing, it seems safe to remove this call this fix a problem when going back and forth in the wizard would make some fields uneditable for the wrong reason --- www/manager6/window/Wizard.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/www/manager6/window/Wizard.js b/www/manager6/window/Wizard.js index 82dd04f1..d2d5aaee 100644 --- a/www/manager6/window/Wizard.js +++ b/www/manager6/window/Wizard.js @@ -156,10 +156,6 @@ Ext.define('PVE.window.Wizard', { me.down('#submit').setDisabled(!valid); me.down('#back').setDisabled(tp.items.indexOf(newcard) == 0); - if (oldcard && !check_card(oldcard)) { - disable_at(oldcard); - } - var next = tp.items.indexOf(newcard) + 1; var ntab = tp.items.getAt(next); if (valid && ntab && !newcard.onSubmit) {