プロジェクト

全般

プロフィール

Vote #79612

未完了

Default plugin value is not

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Plugin API_20
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
20
version_id:
0
issue_org_id:
29853
author_id:
368540
assigned_to_id:
0
comments:
2
status_id:
1
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
141
ステータス-->[New]

説明

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.


journals

--------------------------------------------------------------------------------
I am using Redmine 4.1.2.stable, and default values specified in plugin's `init.rb` are not used too.
--------------------------------------------------------------------------------

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0