Reverts r23811 (#31531).

git-svn-id: https://svn.redmine.org/redmine/trunk@23812 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu
2025-06-01 20:32:31 +00:00
parent 3d8002febf
commit 86f1676742
4 changed files with 1 additions and 14 deletions

View File

@@ -362,6 +362,6 @@ timelog_accept_closed_issues:
show_status_changes_in_mail_subject:
default: 1
wiki_tablesort_enabled:
default: 0
default: 1
reactions_enabled:
default: 1

View File

@@ -8,7 +8,6 @@ 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

View File

@@ -1,8 +0,0 @@
class EnsureWikiTablesortSettingIsStoredInDb < ActiveRecord::Migration[7.2]
def change
unless Setting.where(name: "wiki_tablesort_enabled").exists?
setting = Setting.new(:name => "wiki_tablesort_enabled", :value => 1)
setting.save!
end
end
end

View File

@@ -147,8 +147,4 @@ 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