Defect #29853

Default plugin value is not

Added by Vitaly Krivenko 11 months ago. Updated 11 months ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Plugin API
Target version:-
Resolution: Affected version:3.4.6

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.

History

#1 Updated by Go MAEDA 11 months ago

  • Category changed from Core Plugins to Plugin API

Also available in: Atom PDF