Project

General

Profile

Error #424

Error on My Page -> View all issues

Added by Luis Serrano about 13 years ago. Updated about 13 years ago.

Status:
Resolved
Priority:
Normal
Category:
Milestones
Target version:
Start date:
2011-02-25
Due date:
2011-02-25
% Done:

100%

Estimated time:
Source:
Detected on version:
Redmine version:
Milestones:

Description

When I put this option the new version of the plugin returns this error:

undefined method `milestones' for nil:NilClass

I have redmine 1.1.1 and the version 0.3.0 of the plugin works fine


Files

production.log (5.25 KB) production.log Luis Serrano, 2011-02-24 08:35
#1

Updated by Luis Serrano about 13 years ago

The problem is in the file _milestones_html.erb, ths code try to sort but i don't have a project name.

#2

Updated by Emilio González Montaña about 13 years ago

  • Category set to Milestones
  • Start date deleted (2011-02-23)

Please, attach all the log, Redmine version and plugin version.

#3

Updated by Luis Serrano about 13 years ago

I attach the log

#4

Updated by Luis Serrano about 13 years ago

the Redmine version is 1.1.1 and the plugin version is 0.3.2

#5

Updated by Emilio González Montaña about 13 years ago

  • Status changed from New to In progress
  • Assignee set to Emilio González Montaña
  • Target version set to Advanced roadmap 0.3.3
  • Start date set to 2011-02-25

Detected problem at My page -> View all issues.

Log:

Processing IssuesController#index (for 192.168.0.1 at 2011-02-25 10:31:20) [GET]
  Parameters: {"set_filter"=>"1", "action"=>"index", "assigned_to_id"=>"me", "controller"=>"issues", "sort"=>"priority:desc,updated_on:desc"}
Rendering template within layouts/base
Rendering issues/index.rhtml

ActionView::TemplateError (undefined method `milestones' for nil:NilClass) on line #3 of vendor/plugins/advanced_roadmap/app/views/hooks/_milestones.html.erb:
1: <h3><%= l(:label_milestone_plural) %></h3>
2: 
3: <% @project.milestones.sort.each do |milestone| %>
4: <%= link_to milestone.name, :controller => :milestones, :action => :show, :id => milestone.id %><br />
5: <% end %>

    vendor/plugins/advanced_roadmap/app/views/hooks/_milestones.html.erb:3
    lib/redmine/hook.rb:113:in `send'
    lib/redmine/hook.rb:113:in `view_issues_sidebar_planning_bottom'
    lib/redmine/hook.rb:63:in `send'
    lib/redmine/hook.rb:63:in `call_hook'
    lib/redmine/hook.rb:63:in `each'
    lib/redmine/hook.rb:63:in `call_hook'
    lib/redmine/hook.rb:60:in `call_hook'
    lib/redmine/hook.rb:144:in `call_hook'
    app/views/issues/_sidebar.rhtml:14:in `_run_rhtml_app47views47issues47_sidebar46rhtml_locals_object_sidebar'
    app/views/issues/index.rhtml:77
    app/helpers/application_helper.rb:802:in `content_for'
    app/views/issues/index.rhtml:76:in `_run_rhtml_app47views47issues47index46rhtml'
    app/controllers/issues_controller.rb:84
    app/controllers/issues_controller.rb:83:in `index'

Rendering C:/Archivos de programa/BitNami Redmine Stack/apps/redmine/public/500.html (500 Internal Server Error)
#6

Updated by Emilio González Montaña about 13 years ago

  • Subject changed from Error clicking in View all issues to Error on My Page -> View all issues
#7

Updated by Emilio González Montaña about 13 years ago

  • Due date set to 2011-02-25
  • Status changed from In progress to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF