Signed-off-by: Alex Coles <alex@alexbcoles.com>
@ -227,7 +227,7 @@ module ApplicationHelper
def format_version_name(version)
if version.project == @project
h(version)
else
h("#{version.project} - #{version}")
end
@ -31,4 +31,4 @@ module QueryMenuItemsHelper
def update_query_menu_item_path(project, query_menu_item)
query_menu_item.persisted? ? query_menu_item_path(project, query_menu_item.query, query_menu_item) : query_menu_items_path(project, query_menu_item.query)
@ -265,4 +265,3 @@ module SortHelper
content_tag('th', sort_link(column, caption, default_order, :lang => lang), options)
@ -67,10 +67,10 @@ module TimelogHelper
def select_hours(data, criteria, value)
if value.to_s.empty?
data.select {|row| row[criteria].blank? }
data.select {|row| row[criteria].to_s == value.to_s}