diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2025-06-01 20:41:16 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2025-06-01 20:41:16 +0000 |
commit | feb751843e93ca1ef354aa19c7085a40eadb3c0d (patch) | |
tree | 7b4670723ebcd4e38d0c88a676316187526d64d7 | |
parent | 86f167674275a61654309cdf40a9f86e5bc4ea62 (diff) | |
download | redmine-feb751843e93ca1ef354aa19c7085a40eadb3c0d.tar.gz redmine-feb751843e93ca1ef354aa19c7085a40eadb3c0d.zip |
Set default for "Javascript based table sorting in wiki content" to disabled for new installations (#40588).
git-svn-id: https://svn.redmine.org/redmine/trunk@23813 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | config/settings.yml | 2 | ||||
-rw-r--r-- | db/migrate/017_create_settings.rb | 1 | ||||
-rw-r--r-- | test/unit/setting_test.rb | 4 |
3 files changed, 6 insertions, 1 deletions
diff --git a/config/settings.yml b/config/settings.yml index cda40fa38..b1217fc0a 100644 --- a/config/settings.yml +++ b/config/settings.yml @@ -362,6 +362,6 @@ timelog_accept_closed_issues: show_status_changes_in_mail_subject: default: 1 wiki_tablesort_enabled: - default: 1 + default: 0 reactions_enabled: default: 1 diff --git a/db/migrate/017_create_settings.rb b/db/migrate/017_create_settings.rb index 5768ca24c..f86a1c2c3 100644 --- a/db/migrate/017_create_settings.rb +++ b/db/migrate/017_create_settings.rb @@ -8,6 +8,7 @@ class CreateSettings < ActiveRecord::Migration[4.2] # Persist default settings for new installations Setting.create!(name: 'default_notification_option', value: Setting.default_notification_option) Setting.create!(name: 'text_formatting', value: Setting.text_formatting) + Setting.create!(name: 'wiki_tablesort_enabled', value: Setting.wiki_tablesort_enabled) end def self.down diff --git a/test/unit/setting_test.rb b/test/unit/setting_test.rb index 4ae07cebb..cbfabbb02 100644 --- a/test/unit/setting_test.rb +++ b/test/unit/setting_test.rb @@ -147,4 +147,8 @@ class SettingTest < ActiveSupport::TestCase def test_default_text_formatting_for_new_installations_is_common_mark assert_equal 'common_mark', Setting.text_formatting end + + def test_default_wiki_tablesort_enabled_for_new_installations_is_disabled + assert_equal "0", Setting.wiki_tablesort_enabled + end end |