diff --git a/pandora_console/extras/mr/69.sql b/pandora_console/extras/mr/69.sql new file mode 100644 index 0000000000..c7f619f3a1 --- /dev/null +++ b/pandora_console/extras/mr/69.sql @@ -0,0 +1,6 @@ +START TRANSACTION; + +ALTER TABLE `tusuario` +ADD COLUMN `stop_lts_modal` TINYINT NOT NULL DEFAULT 0 AFTER `session_max_time_expire`; + +COMMIT; \ No newline at end of file diff --git a/pandora_console/godmode/update_manager/modal_lts_update.php b/pandora_console/godmode/update_manager/modal_lts_update.php index 7721783920..349e378b40 100644 --- a/pandora_console/godmode/update_manager/modal_lts_update.php +++ b/pandora_console/godmode/update_manager/modal_lts_update.php @@ -43,9 +43,11 @@ if (! check_acl($config['id_user'], 0, 'PM') && ! is_user_admin($config['id_user if (is_ajax()) { $stopShowingModal = get_parameter('stopShowingModal', 0); if ($stopShowingModal === '1') { - config_update_value('stop_lts_modal', 1); - } else { - config_update_value('stop_lts_modal', 0); + db_process_sql_update( + 'tusuario', + ['stop_lts_modal' => '1'], + ['id_user' => $config['id_user']], + ); } return; @@ -95,7 +97,8 @@ if ($php_version_array[0] < 7) {