Project

General

Profile

Adding new default settings to my plugin and they're not loading

Added by Travis Spangle over 9 years ago

Hello,

I'm working on my plugin. Working out of the Redmine trunk, http://svn.redmine.org/redmine/trunk.

I've added some settings in my init.rb

From:

 settings( :default => { 'spent_time_max_display'  => 3 }, :partial => 'settings/spent_time_settings' )

To:

 settings( :default => { 'spent_time_max_display'  => 3, 'show_user' => 'yes' }, :partial => 'settings/spent_time_settings' )

When I restart the application other values such as version will update. But the default settings will not be set. Same results when running the rake task redmine:plugins:migration. I've deleted the Settings record and it still will not populate.

What am I doing wrong?


Replies (1)

Solved: Adding new default settings to my plugin and they're not loading - Added by Travis Spangle over 9 years ago

User Error! These settings should update with a restart.

    (1-1/1)