Bug #1933
Undefined method `title' for nil:NilClass
Start date:
06 Jan 2012
Due date:
31 Jan 2012
% Done:
100%
Redmine version:
1.2.2
External issue:
Description
When accessing .../projects/.../wiki/index
gives:
ActionView::TemplateError (undefined method `title' for nil:NilClass) on line #5 of vendor/plugins/like/app/views/like/wiki/_sidebar.rhtml: 2: <% if settings[:location] == 'sidebar' %> 3: <% url = request.params[:action] == 'show' ? 4: canonical_url_for(:controller => 'wiki', :action => 'show', :project_id => project, :id => page.title) : 5: canonical_url_for(:controller => 'wiki', :action => 'index', :id => project, :page => page.title) %> 6: <p><%= render(:partial => 'like/common/facebook', :locals => { :url => url }) %></p> 7: <% end %>
The Like button is placed on sidebar...
History
#1 Updated by Andriy Lesyuk almost 13 years ago
- Due date set to 31 Jan 2012
- Status changed from Open to Closed
- % Done changed from 0 to 100