diff --git a/pandora_console/extras/mr/69.sql b/pandora_console/extras/mr/69.sql index 7d83d8a467..685ecdf30e 100644 --- a/pandora_console/extras/mr/69.sql +++ b/pandora_console/extras/mr/69.sql @@ -7790,4 +7790,9 @@ WHERE `content`= 'expect:root@% cli\n expect:root>& UPDATE `tncm_script` SET `content` ='expect:root@% cli\n expect:root> capture:show version|match Junos:\n quit\n expect:root@% exit\n' WHERE `content`='expect:root@% cli\n expect:root> capture:show version|match Junos:\n capture: \n quit\n expect:root@% exit\n'; +SET @id_token_welcome_state = NULL; +SET @token_name_welcome_state = 'welcome_state'; +SELECT @id_token_welcome_state := `id_config` FROM `tconfig` WHERE `token` = @token_name_welcome_state ORDER BY `id_config` DESC LIMIT 1; +DELETE FROM `tconfig` WHERE `token` = @token_name_welcome_state AND `id_config` != @id_token_welcome_state; + COMMIT; \ No newline at end of file diff --git a/pandora_console/include/ajax/welcome_window.php b/pandora_console/include/ajax/welcome_window.php index 2ca1a5e953..fcad748016 100644 --- a/pandora_console/include/ajax/welcome_window.php +++ b/pandora_console/include/ajax/welcome_window.php @@ -39,7 +39,7 @@ $ajaxPage = 'include/ajax/welcome_window'; $method = get_parameter('method', ''); if ($method === 'loadWelcomeWindow') { - unset($config['welcome_state']); + $config['welcome_state'] = 0; }