Project

General

Profile

Actions

Defect #28529

open

Plugin settings trouble

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

Status:
New
Priority:
Normal
Assignee:
-
Category:
Plugin API
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
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

Actions

Also available in: Atom PDF