From 303d345dd5e7ead6975bd3140b213219d7e0f4f0 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Thu, 12 Nov 2015 15:19:37 -0200 Subject: Fix upgrade_126_to_127() - Do not discard items with $display already set to open or close - Call continue 2 to move to next widget --- src/etc/inc/upgrade_config.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/etc/inc/upgrade_config.inc b/src/etc/inc/upgrade_config.inc index ea38fbf..22c0852 100644 --- a/src/etc/inc/upgrade_config.inc +++ b/src/etc/inc/upgrade_config.inc @@ -4067,6 +4067,10 @@ function upgrade_126_to_127() { list($file, $col, $display) = explode(':', $widget); switch ($display) { + case 'close': + case 'open': + /* keep already converted items */ + break; case 'hide': $display = 'close'; break; @@ -4075,7 +4079,7 @@ function upgrade_126_to_127() { break; default: /* close, none or something is wrong here, ignore it */ - continue; + continue 2; } /* Remove '-container' from widget name */ -- cgit v1.1