Lately I've noticed an error in this great plugin (see for my needs Redmine issue 1650 [http://www.redmine.org/issues/1650]) which only shows up when there are no status transitions configured yet.
This happens on a checkout of the Redmine trunk @ r3737 running on Ruby Enterprise Edition with Phusion Passenger, powered by Apache and MySQL, on a RHEL4 Linux derivative OS.
It can be easily fixed by changing the mentioned line 20 to:
<% if transitions.empty? %>
I'll apply this patch to my fork so it's easy for you to apply it when approved...
Hello,
Lately I've noticed an error in this great plugin (see for my needs Redmine issue 1650 [http://www.redmine.org/issues/1650]) which only shows up when there are no status transitions configured yet.
The issue is located in the _status_transition_list.rhtml partial view on line 19 (http://github.com/delaitre/redmine_time_tracker/blob/master/app/views/time_trackers/_status_transition_list.rhtml#L19) which currently reads: <% if transitions.count == 0 %>
The used count-method does not seem to exist for a hash object (see e.g. http://ruby-doc.org/core/classes/Hash.html#method-list) which results in an error like this:
This happens on a checkout of the Redmine trunk @ r3737 running on Ruby Enterprise Edition with Phusion Passenger, powered by Apache and MySQL, on a RHEL4 Linux derivative OS.
It can be easily fixed by changing the mentioned line 20 to:
I'll apply this patch to my fork so it's easy for you to apply it when approved...
Kind regards,
Mischa