summaryrefslogtreecommitdiffstats
path: root/app/views/timelog
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-06-29 12:01:20 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-06-29 12:01:20 +0000
commit1424b0f215082fff57d840dc715f5875bea45ef0 (patch)
tree1b0ee883e614f65c3f74f265ccb54b9992f8e970 /app/views/timelog
parent94cf4f258ff61bac4708c9a8dcba5c50b8adcf94 (diff)
downloadredmine-1424b0f215082fff57d840dc715f5875bea45ef0.tar.gz
redmine-1424b0f215082fff57d840dc715f5875bea45ef0.zip
Addq "please select" to activity select box if no activity is set as default (#937).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1602 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/timelog')
-rw-r--r--app/views/timelog/edit.rhtml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/timelog/edit.rhtml b/app/views/timelog/edit.rhtml
index f9dae8a99..7e8cc4591 100644
--- a/app/views/timelog/edit.rhtml
+++ b/app/views/timelog/edit.rhtml
@@ -9,7 +9,7 @@
<p><%= f.text_field :spent_on, :size => 10, :required => true %><%= calendar_for('time_entry_spent_on') %></p>
<p><%= f.text_field :hours, :size => 6, :required => true %></p>
<p><%= f.text_field :comments, :size => 100 %></p>
-<p><%= f.select :activity_id, (@activities.collect {|p| [p.name, p.id]}), :required => true %></p>
+<p><%= f.select :activity_id, activity_collection_for_select_options, :required => true %></p>
</div>
<%= submit_tag l(:button_save) %>