Project

General

Profile

Actions

Bug #2900

closed

Undefined method 'format_time' for NewsNotification

Added by liaham 2 months ago. Updated 2 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
02/07/2025
Due date:
02/07/2025
% Done:

100%

Estimated time:
Affected Version:
Compatible Redmine Version:
6.0.z

Description

With RM 6 this error occurs:

ActionView::Template::Error (undefined method `format_time' for class NewsNotification):

Causes:
NoMethodError (undefined method `format_time' for class NewsNotification)
    182: </div></div>
    183: 
    184: 
    185: <div id="ajax-indicator" style="display:none;"><span><%= l(:label_loading) %></span></div>
    186: <div id="ajax-modal" style="display:none;"></div>
    187: 
    188: </div>
  
plugins/redmine_news_notification/app/models/news_notification.rb:29:in `block in unread_news'
plugins/redmine_news_notification/app/models/news_notification.rb:27:in `map'
plugins/redmine_news_notification/app/models/news_notification.rb:27:in `unread_news'
plugins/redmine_news_notification/lib/redmine_news_notification/hooks/news_notification_listener.rb:39:in `view_layouts_base_body_bottom'
lib/redmine/hook.rb:66:in `block (2 levels) in call_hook'
lib/redmine/hook.rb:66:in `each'
lib/redmine/hook.rb:66:in `block in call_hook'
lib/redmine/hook.rb:63:in `call_hook'
lib/redmine/hook.rb:101:in `call_hook'
Actions #1

Updated by liaham 2 months ago

  • Due date set to 02/07/2025
  • Status changed from New to Closed
  • Start date set to 02/07/2025
  • % Done changed from 0 to 100
Actions #2

Updated by liaham 2 months ago

  • Target version changed from unreleased to 1.2.0
Actions

Also available in: Atom PDF