Vote #71766
完了Cannot access Repositories page and Settings in a Project - Error 500
開始日:
2022/05/09
期日:
進捗率:
0%
予定工数:
Redmineorg_URL:
category_id:
3
version_id:
48
issue_org_id:
10827
author_id:
54004
assigned_to_id:
1
comments:
1
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
40
説明
I had 2 repositories in a project
- 1 svn
- 1 local
I added a new git as default and this happened.
Since then I'm unable to access Repositories and Settings page of the project
Processing ProjectsController#settings (for 10.253.6.23 at 2012-05-03 21:35:28) [GET] Parameters: {"controller"=>"projects", "action"=>"settings", "id"=>"my_project"} Rendering template within layouts/base Rendering projects/settings ActionView::TemplateError (undefined method `<=>' for nil:NilClass) on line #13 of app/views/projects/settings/_repositories.html.erb: 10: 11: 12: 13: <% @project.repositories.sort.each do |repository| %> 14:15: <%=h repository.scm_name %> 16:<%=h repository.identifier %> app/models/repository.rb:144:in `<=>' app/views/projects/settings/_repositories.html.erb:13 app/views/common/_tabs.html.erb:24 app/views/common/_tabs.html.erb:23:in `each' app/views/common/_tabs.html.erb:23 app/helpers/application_helper.rb:231:in `render_tabs' app/views/projects/settings.html.erb:3 config/initializers/mongrel.rb:62:in `dispatch_cgi' Rendering C:/Ruby/Apps/redmine/public/500.html (500 Internal Server Error)いいね!0journals
Fixed in r9619 and merged in r9620 into 1.4-stable. You can patch your app/models/repository.rb
Thanks for pointing this out.
--------------------------------------------------------------------------------いいね!0