Status of Redmine and support for Rails 2.3.5 and Ruby 1.9.1 ยป redmine_trunk_ruby_1.9.1_rails_2.3.5.patch
| app/helpers/issues_helper.rb (working copy) | ||
|---|---|---|
|
case detail.property
|
||
|
when 'attr', 'cf'
|
||
|
if !detail.old_value.blank?
|
||
|
l(:text_journal_changed, :label => label, :old => old_value, :new => value)
|
||
|
l(:text_journal_changed, :label => label.force_encoding('utf-8'), :old => old_value.force_encoding('utf-8'), :new => value.force_encoding('utf-8'))
|
||
|
else
|
||
|
l(:text_journal_set_to, :label => label, :value => value)
|
||
|
l(:text_journal_set_to, :label => label.force_encoding('utf-8'), :value => value.force_encoding('utf-8'))
|
||
|
end
|
||
|
when 'attachment'
|
||
|
l(:text_journal_added, :label => label, :value => value)
|
||
|
l(:text_journal_added, :label => label.force_encoding('utf-8'), :value => value.force_encoding('utf-8'))
|
||
|
end
|
||
|
else
|
||
|
l(:text_journal_deleted, :label => label, :old => old_value)
|
||
|
l(:text_journal_deleted, :label => label.force_encoding('utf-8'), :old => old_value.force_encoding('utf-8'))
|
||
|
end
|
||
|
end
|
||
|
|
||
| app/views/mailer/issue_edit.text.plain.rhtml (working copy) | ||
|---|---|---|
|
<%= show_detail(detail, true) %>
|
||
|
<% end -%>
|
||
|
<%= @journal.notes if @journal.notes? %>
|
||
|
<%= @journal.notes.force_encoding('utf-8') if @journal.notes? %>
|
||
|
----------------------------------------
|
||
|
<%= render :partial => "issue_text_plain", :locals => { :issue => @issue, :issue_url => @issue_url } %>
|
||
| app/views/issues/_edit.rhtml (working copy) | ||
|---|---|---|
|
:url => {:action => 'edit', :id => @issue},
|
||
|
:html => {:id => 'issue-form',
|
||
|
:class => nil,
|
||
|
:multipart => true} do |f| %>
|
||
|
:multipart => true, :'accept-charset' => 'utf-8'} do |f| %>
|
||
|
<%= error_messages_for 'issue' %>
|
||
|
<%= error_messages_for 'time_entry' %>
|
||
|
<div class="box">
|
||
| app/views/issues/new.rhtml (working copy) | ||
|---|---|---|
|
<h2><%=l(:label_issue_new)%></h2>
|
||
|
<% labelled_tabular_form_for :issue, @issue,
|
||
|
:html => {:multipart => true, :id => 'issue-form'} do |f| %>
|
||
|
:html => {:multipart => true, :id => 'issue-form', :'accept-charset' => 'utf-8'} do |f| %>
|
||
|
<%= error_messages_for 'issue' %>
|
||
|
<div class="box">
|
||
|
<%= render :partial => 'issues/form', :locals => {:f => f} %>
|
||
| config/environment.rb (working copy) | ||
|---|---|---|
|
Rails::Initializer.run do |config|
|
||
|
# Settings in config/environments/* take precedence those specified here
|
||
|
|
||
|
Encoding.default_external = 'utf-8'
|
||
|
Encoding.default_internal = 'utf-8'
|
||
|
# Skip frameworks you're not going to use
|
||
|
# config.frameworks -= [ :action_web_service, :action_mailer ]
|
||
| lib/tabular_form_builder.rb (working copy) | ||
|---|---|---|
|
super
|
||
|
end
|
||
|
|
||
|
(field_helpers - %w(radio_button hidden_field) + %w(date_select)).each do |selector|
|
||
|
(field_helpers - [:radio_button, :hidden_field] + [:date_select]).each do |selector|
|
||
|
src = <<-END_SRC
|
||
|
def #{selector}(field, options = {})
|
||
|
label_for_field(field, options) + super
|
||