dynamo-media / redmine_issue_detailed_tabs_time

30 stars 24 forks source link

ActionView::Template::Error (undefined method `any?' for "":String) #5

Closed jwalkerbg closed 11 years ago

jwalkerbg commented 11 years ago

Hi,

Configuration: Environment: Redmine version 2.3.0.devel.11579 Ruby version 1.9.3 (i386-mingw32) Rails version 3.2.12 Environment production Database adapter Mysql2 puma server Redmine plugins: redmine_issue_detailed_tabs_time 0.0.6

It seems there is a bug:

Started GET "/issues/1904" for 192.168.60.101 at 2013-03-10 07:15:27 +0200 Processing by IssuesController#show as HTML Parameters: {"id"=>"1904"} Current user: imc (id=3) Rendered issues/_action_menu.html.erb (3.0ms) Rendered issue_relations/_form.html.erb (1.0ms) Rendered issues/_relations.html.erb (2.0ms) Rendered plugins/redmine_issue_detailed_tabs_time/app/views/issues/_history.html.erb (29.0ms) Rendered issues/show.html.erb within layouts/base (63.0ms) Completed 500 Internal Server Error in 273ms

ActionView::Template::Error (undefined method any?' for "":String): 55: <%= authoring timelog.created_on, timelog.user, :label => :label_history_time_logged_by %></h4> 56: <ul class="details"> 57: <li><strong><%= l :label_history_time_spent%>:</strong> <%= html_hours("%.2f" % timelog.hours) %> <%= l :label_history_time_hours_on%> <%= h timelog.activity%></li> 58: <% if timelog.comments.any?%> 59: <blockquote> 60: <p> 61: <%= timelog.comments %> app/views/issues/show.html.erb:120:in_app_views_issues_show_html_erb___544981448_44837880' app/controllers/issues_controller.rb:119:in block (2 levels) in show' app/controllers/issues_controller.rb:116:inshow'

markedagain commented 11 years ago

ill have to spin up a new image for 1.9.3 running the devel im still new to ruby and have not had a chance to play around with rvm for my different environments. you might have to wait a bit as im trying to finish setting up my work system and made this for that. but ill def look at it before tuesday

cforce commented 11 years ago

I have the same error on redmine 2.2.3 and ruby-1.9.3-p327

markedagain commented 11 years ago

ya im pretty sure in 1.9 they changed how routing works. i will put in version checks today and push the changes tonight

markedagain commented 11 years ago

issue fixed on last commit