SphereSoftware / easy_agile

Easy Agile is a Redmine plugin for agile project management.
MIT License
51 stars 15 forks source link

Users receive an Internal Error on "My Page" #17

Closed rileyw closed 13 years ago

rileyw commented 13 years ago

Users are adding the "Active Work" page block to their "My Page" and as soon the page block has been added an "Internal Error" is returned. The production.log reports the following:


ActionView::TemplateError (undefined method `pending?' for nil:NilClass) on line #11 of vendor/plugins/easy_agile/app/views/my/blocks/_active_work.erb:
8: <li class="<%= cycle('odd', 'even') %>">
9:   <div class="iteration">
10:     <%= link_to(
11:       image_tag(iteration.pending? ? 'burndown.png' : project_iteration_burndown_path(iteration.project, iteration, :width => width),
12:         :width => width, :height => height, :alt => "Burndown chart for #{h iteration.name}"),
13:       [iteration.project, iteration]) %>
14:     <%= link_to h(iteration), [iteration.project, iteration] %>

    vendor/plugins/easy_agile/app/views/my/blocks/_active_work.erb:11
    app/views/my/page.rhtml:11:in `_run_rhtml_app47views47my47page46rhtml'
    app/views/my/page.rhtml:8:in `each'
    app/views/my/page.rhtml:8:in `_run_rhtml_app47views47my47page46rhtml'
    dispatch.fcgi:24
patakijv commented 13 years ago

Getting this also - how to resolve or undo adding the block to My Page?

rileyw commented 13 years ago

You will need to edit the user_preferences table, find the row for the appropriate user_id, and remove the "active_work" line from the row contents. I forget the exact column name.

rileyw commented 13 years ago

Ack -- Didn't mean to close.

rnuno commented 13 years ago

I'm also seeing this error. Anyway on how to fix it?

To clean it you need to: 1) Open user_preferences table 2) locate your user_id 3) delete -active_work from the "others" field.

msorc commented 13 years ago

Fixed