プロジェクト

全般

プロフィール

Vote #80821

完了

Warnings while running redmine:load_default_data rake task

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

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

0%

予定工数:
category_id:
8
version_id:
161
issue_org_id:
33310
author_id:
332
assigned_to_id:
332
comments:
5
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
80
ステータス-->[Closed]

説明

You will see two warnings when you run redmine:load_default_data rake task.

$ bin/rake redmine:load_default_data
/path/to/gems/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/associations.rb:1828: warning: already initialized constant CustomField::HABTM_Roles
/path/to/gems/ruby/2.6.0/gems/activerecord-5.2.4.2/lib/active_record/associations.rb:1828: warning: previous definition of HABTM_Roles was here

Select language: ar, az, bg, bs, ca, cs, da, de, el, en, en-GB, es, es-PA, et, eu, fa, fi, fr, gl, he, hr, hu, id, it, ja, ko, lt, lv, mk, mn, nl, no, pl, pt, pt-BR, ro, ru, sk, sl, sq, sr, sr-YU, sv, th, tr, uk, vi, zh, zh-TW [en] 

journals

It can be fixed with the following patch:

<pre><code class="diff">
diff --git a/lib/tasks/load_default_data.rake b/lib/tasks/load_default_data.rake
index bcfff7c3b..cc6774bce 100644
--- a/lib/tasks/load_default_data.rake
+++ b/lib/tasks/load_default_data.rake
@@ -2,7 +2,6 @@ desc 'Load Redmine default configuration data. Language is chosen interactively

namespace :redmine do
task :load_default_data => :environment do
- require 'custom_field'
include Redmine::I18n
set_language_if_valid('en')

</code></pre>
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Setting the target version to 4.0.8.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Committed the fix.
--------------------------------------------------------------------------------


related_issues

relates,Closed,14607,rake redmine:load_default_data Error

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

  • カテゴリAdministration_8 にセット
  • 対象バージョン4.0.8_161 にセット

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

いいね!0
いいね!0