Feature #999
Support for Redmine 3.0
100%
Description
Hi,
with Redmine 3.0 i get an Error 500:
Completed 500 Internal Server Error in 4557ms ActiveRecord::RecordNotFound (Couldn't find Role with 'id'=all): vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0/lib/active_record/relation/finder_methods.rb:336:in `raise_record_not_found_exception!' vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0/lib/active_record/relation/finder_methods.rb:456:in `find_one' vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0/lib/active_record/relation/finder_methods.rb:435:in `find_with_ids' vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0/lib/active_record/relation/finder_methods.rb:71:in `find' vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0/lib/active_record/querying.rb:3:in `find' vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.0/lib/active_record/core.rb:130:in `find' plugins/localizable/app/views/settings/_localizable.html.erb:50:in `_plugins_localizable_app_views_settings__localizable_html_erb__3663128455594115890_69849051000820'
Updated by Jonathan Name over 9 years ago
fixed:
in /localizable/app/views/settings
diff _localizable.html.erb _localizable.html.erb.orig
50,54c50,54
< <%- elements = [{:name => "role", :objects => Role.all, :label => :label_role_plural},
< {:name => "tracker", :objects => Tracker.all, :label => :label_tracker_plural},
< {:name => "issue_status", :objects => IssueStatus.all, :label => :label_issue_status_plural},
< {:name => "custom_field", :objects => CustomField.all, :label => :label_custom_field_plural},
< {:name => "enumeration", :objects => Enumeration.where("project_id IS NULL").sort{|a, b| a.type.downcase <=> b.type.downcase}, :label => :label_enumerations}] %>
--
<%- elements = [{:name => "role", :objects => Role.find(:all), :label => :label_role_plural}, {:name => "tracker", :objects => Tracker.find(:all), :label => :label_tracker_plural}, {:name => "issue_status", :objects => IssueStatus.find(:all), :label => :label_issue_status_plural}, {:name => "custom_field", :objects => CustomField.find(:all), :label => :label_custom_field_plural}, {:name => "enumeration", :objects => Enumeration.find(:all, :conditions => "project_id IS NULL").sort{|a, b| a.type.downcase <=> b.type.downcase}, :label => :label_enumerations}] -%>
95,96c95,96
< <input name="settings[locales][<%= element[:name] >][<= object.id >][<= locale.to_s.force_encoding("UTF-8") >]"
< value="<= @settings["locales"][element[:name]][object.id.to_s][locale].to_s.force_encoding("UTF-8") %>" />
---
<input name="settings[locales][<%= element[:name] >][<= object.id >][<= locale.to_s >]"
value="<= @settings["locales"][element[:name]][object.id.to_s][locale].to_s %>" />
Updated by Jonathan Name over 9 years ago
50,54c50,54 < <%- elements = [{:name => "role", :objects => Role.all, :label => :label_role_plural}, < {:name => "tracker", :objects => Tracker.all, :label => :label_tracker_plural}, < {:name => "issue_status", :objects => IssueStatus.all, :label => :label_issue_status_plural}, < {:name => "custom_field", :objects => CustomField.all, :label => :label_custom_field_plural}, < {:name => "enumeration", :objects => Enumeration.where("project_id IS NULL").sort{|a, b| a.type.downcase <=> b.type.downcase}, :label => :label_enumerations}] -%> --- > <%- elements = [{:name => "role", :objects => Role.find(:all), :label => :label_role_plural}, > {:name => "tracker", :objects => Tracker.find(:all), :label => :label_tracker_plural}, > {:name => "issue_status", :objects => IssueStatus.find(:all), :label => :label_issue_status_plural}, > {:name => "custom_field", :objects => CustomField.find(:all), :label => :label_custom_field_plural}, > {:name => "enumeration", :objects => Enumeration.find(:all, :conditions => "project_id IS NULL").sort{|a, b| a.type.downcase <=> b.type.downcase}, :label => :label_enumerations}] -%> 95,96c95,96 < <input name="settings[locales][<%= element[:name] %>][<%= object.id %>][<%= locale.to_s.force_encoding("UTF-8") %>]" < value="<%= @settings["locales"][element[:name]][object.id.to_s][locale].to_s.force_encoding("UTF-8") %>" /> --- > <input name="settings[locales][<%= element[:name] %>][<%= object.id %>][<%= locale.to_s %>]" > value="<%= @settings["locales"][element[:name]][object.id.to_s][locale].to_s %>" />
Updated by Emilio González Montaña over 9 years ago
- Category set to General
- Status changed from New to In progress
- Assignee set to Emilio González Montaña
- Start date set to 2015-06-13
Updated by Emilio González Montaña over 9 years ago
- Due date set to 2015-06-14
- Status changed from In progress to Resolved
- % Done changed from 0 to 100