Skip to content

If has subproject, the project_overview shows internal error. #22

@amizhang

Description

@amizhang

When a project has a subproject, the project_overview page can't be opened, the log show like:

ActionView::Template::Error (undefined method shift' for #<Project::ActiveRecord_Relation:0x00000102a35cc0>): 23: <% end %> 24: 25: <tr class="po_project"> 26: <td title="<%= project_full_title(project) %>"><%= link_to project.name, project_path(project) %></td> 27: <% if Setting.plugin_project_overview[:stale_enable] %> 28: <td align="center"> 29: <% if project.archived? %> app/views/common/_tabs.html.erb:22:inblock in _app_views_common__tabs_html_erb__3504873109440660110_2220811220'
app/views/common/_tabs.html.erb:21:in each' app/views/common/_tabs.html.erb:21:in_app_views_common__tabs_html_erb__3504873109440660110_2220811220'
app/helpers/application_helper.rb:321:in `render_tabs'

Found it this morning, still running on solutions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions