From 64b41346f7d6d6c52c9d6704fa7a500bbc99b4b2 Mon Sep 17 00:00:00 2001 From: Lukas Ocilka Date: Thu, 2 May 2013 09:31:55 +0000 Subject: [PATCH] Re-enabling all disabled items (steps, proposals) if stagemode has changed - bnc#813072 --- library/control/src/ProductControl.ycp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/library/control/src/ProductControl.ycp b/library/control/src/ProductControl.ycp index 3e5b7e88a..dd8f47a90 100644 --- a/library/control/src/ProductControl.ycp +++ b/library/control/src/ProductControl.ycp @@ -87,6 +87,13 @@ list DisabledModules = []; list DisabledProposals = []; +void ResetDisabledItems () { + DisabledModules = []; + DisabledProposals = []; + DisabledACItems = $[]; + DisabledSubProposals = $[]; +} + // <-- // Log files for hooks @@ -899,6 +906,12 @@ global define void UpdateWizardSteps(list stagemode) return; } + // bnc#813072: stagemode has changed, re-enable all disabled modules + // and proposals and other items + if (stagemode != last_stage_mode) { + ResetDisabledItems(); + } + last_stage_mode = stagemode; lastDisabledModules = DisabledModules;