プロジェクト

全般

プロフィール

Vote #76125

完了

Repository users broken if only one committer exists

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

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

0%

予定工数:
category_id:
3
version_id:
92
issue_org_id:
19253
author_id:
63837
assigned_to_id:
1
comments:
5
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
80
ステータス-->[Closed]

説明

First thanks for the great work and the new major version.

I just updated from 2.6.1 to 3.0.0. My environment looks like the following:

Environment:
  Redmine version                3.0.0.stable
  Ruby version                   1.9.3-p484 (2013-11-22) [x86_64-linux]
  Rails version                  4.2.0
  Environment                    production
  Database adapter               PostgreSQL

When I navigate to the repository tab of a projects settings where only one committer contributed to the repository and click on "Users" I get the following error:

Started GET "/repositories/8/committers" for xxx at 2015-03-03 12:02:24 +0100
Processing by RepositoriesController#committers as HTML
  Parameters: {"id"=>"8"}
  Current user: xxx (id=1)
Completed 500 Internal Server Error in 18ms

NoMethodError (undefined method `compact!' for #):
  app/controllers/repositories_controller.rb:98:in `committers'

This does not happen if the repository I want to configure has more than one contributor.


journals

--------------------------------------------------------------------------------
I fixed it by adding @.to_a@ on line 97

<pre>
@users = @project.users.to_a
</pre>
--------------------------------------------------------------------------------
Fix committed in r14053 with a test. Thanks for pointing this out.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

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

  • カテゴリSCM_3 にセット
  • 対象バージョン3.0.1_92 にセット

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

いいね!0
いいね!0