Actions
Defect #29853
openDefault plugin value is not
Status:
New
Priority:
Normal
Assignee:
-
Category:
Plugin API
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Affected version:
Description
Currently the default setting value is not created regarding its setting in init.rb file. Tried various ways to store but both are not working and there is no default value:
settings :default => { :weeklabel_name => 'Weekly Label' }, :partial => 'settings/settings'
settings :default => { 'weeklabel_name' => 'Weekly Label' }, :partial => 'settings/settings'
After editing the default value in settings dialog it is properly retrieved and saved further on. Only first time reading is not working. Checking through database reveals that Settings table does not contain the newly defined default value.
Updated by Go MAEDA about 6 years ago
- Category changed from Core Plugins to Plugin API
Updated by keineahnung 2345 over 2 years ago
I am using Redmine 4.1.2.stable, and default values specified in plugin's `init.rb` are not used too.
Actions