From: Toshi MARUYAMA Date: Wed, 13 Aug 2014 16:08:55 +0000 (+0000) Subject: fix test failure on Ruby 1.8.7 PostgreSQL (#17484) X-Git-Tag: 2.6.0~80 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2f6070bb2b9d3f0b04aa17072ce3e1dfac8d32fe;p=redmine.git fix test failure on Ruby 1.8.7 PostgreSQL (#17484) git-svn-id: http://svn.redmine.org/redmine/trunk@13338 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/helpers/context_menus_helper.rb b/app/helpers/context_menus_helper.rb index b97d9844a..cc8d2b153 100644 --- a/app/helpers/context_menus_helper.rb +++ b/app/helpers/context_menus_helper.rb @@ -43,7 +43,7 @@ module ContextMenusHelper def bulk_update_time_entry_custom_field_context_menu_link(field, text, value) context_menu_link h(text), - bulk_update_time_entries_path(:ids => @time_entries.map(&:id), :time_entry => {'custom_field_values' => {field.id => value}}, :back_url => @back), + bulk_update_time_entries_path(:ids => @time_entries.map(&:id).sort, :time_entry => {'custom_field_values' => {field.id => value}}, :back_url => @back), :method => :post, :selected => (@time_entry && @time_entry.custom_field_value(field) == value) end