Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

One more patch to core, but this one is not cosmetic, it is a patch f…

…or settings
  • Loading branch information...
commit fd1cb0ba54f4e70c5e023317fe0c17a634a5f6b7 1 parent 91d9496
Jehreg authored
Showing with 13 additions and 0 deletions.
  1. +13 −0 redmine-patches/20120324003-models-setting.patch
13 redmine-patches/20120324003-models-setting.patch
View
@@ -0,0 +1,13 @@
+diff --git a/app/models/setting.rb b/app/models/setting.rb
+index 5db7f67..497f1d7 100644
+--- a/app/models/setting.rb
++++ b/app/models/setting.rb
+@@ -76,6 +76,8 @@ class Setting < ActiveRecord::Base
+ next unless plugin.settings
+ @@available_settings["plugin_#{plugin.id}"] = {'default' => plugin.settings[:default], 'serialized' => true}
+ end
++ @@available_settings["plugin_timesheet_plugin"] = {'default' => {'list_size' => '5', 'precision' => '2', 'project_status' => 'active'},'serialized' => true}
++ @@available_settings["plugin_redmine_join_project"] = {'default' => {'list_size' => '5', 'precision' => '2', 'project_status' => 'active'},'serialized' => true}
+
+ validates_uniqueness_of :name
+ validates_inclusion_of :name, :in => @@available_settings.keys
Please sign in to comment.
Something went wrong with that request. Please try again.