diff options
Diffstat (limited to 'app/views/trackers/_form.rhtml')
-rw-r--r-- | app/views/trackers/_form.rhtml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/trackers/_form.rhtml b/app/views/trackers/_form.rhtml index 26a34443c..856b70bbc 100644 --- a/app/views/trackers/_form.rhtml +++ b/app/views/trackers/_form.rhtml @@ -4,8 +4,9 @@ <p><%= f.text_field :name, :required => true %></p> <p><%= f.check_box :is_in_chlog %></p> <p><%= f.check_box :is_in_roadmap %></p> -<% if @tracker.new_record? %> -<p><label><%= l(:label_copy_workflow_from) %></label> <%= select_tag(:copy_workflow_from, content_tag("option") + options_from_collection_for_select(@trackers, :id, :name)) %></p> +<% if @tracker.new_record? && @trackers.any? %> +<p><label><%= l(:label_copy_workflow_from) %></label> +<%= select_tag(:copy_workflow_from, content_tag("option") + options_from_collection_for_select(@trackers, :id, :name)) %></p> <% end %> <!--[eoform:tracker]--> </div> |