Defect #28529

Plugin settings trouble

Added by Vladimir Kh over 3 years ago. Updated almost 3 years ago.

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

0%

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

Description

The problem is that now is impossible to call the option of plugin setting via symbol, only via the string.
now:

irb(main):006:0> Setting.plugin_redmine_ckeditor["skin"]
=> "kama" 
irb(main):007:0> Setting.plugin_redmine_ckeditor[:skin]
=> nil
irb(main):008:0> Setting.plugin_redmine_ckeditor.class 
=> Hash
irb(main):009:0> puts Redmine::VERSION
3.4.4.stable

earlier:

irb(main):001:0> Setting.plugin_redmine_ckeditor[:skin]
=> "kama" 
irb(main):002:0> Setting.plugin_redmine_ckeditor["skin"]
=> "kama" 
irb(main):003:0> Setting.plugin_redmine_ckeditor.class
=> ActionController::Parameters
irb(main):004:0> puts Redmine::VERSION
3.3.4.stable

So now some plugins are not working correctly.
This is connected with issue #26393 and r16812

History

#1 Updated by Rang Tang almost 3 years ago

+1

I am using some plugin (redmine knowledge base) which also used symbols as settings keys, which works fine in Redmine 3.2 but fails on Redmine 3.4.

A bug introduced in 3.4 I guess?

Also available in: Atom PDF