Skip to content

Commit a0907ee

Browse files
authored
Merge pull request #62 from farend/support-rails7.1
Support rails7.1
2 parents 0d8154c + d37a24e commit a0907ee

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

app/helpers/custom_message_settings_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def normal_mode_input_fields(setting, lang)
1616
custom_messages_hash.each do |k, v|
1717
content += content_tag(:p) do
1818
content_tag(:label, k) +
19-
text_field_tag("settings[custom_messages[#{k}]]", v.to_s) +
19+
text_field_tag("settings[custom_messages][#{k}]", v.to_s) +
2020
link_to_function('', '$(this).closest("p").remove();', class: 'icon icon-del clear-key-link')
2121
end
2222
end

app/views/custom_message_settings/_messages.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function AddMessageInputField(key, val){
4040
$('<input>').attr({
4141
type: 'text',
4242
value: val.replace(/.*: /, ''),
43-
name: 'settings[custom_messages[' + key + ']]'
43+
name: 'settings[custom_messages][' + key + ']'
4444
}).appendTo($('#edit-custom-messages .tabular p:first'));
4545
$('<a>').attr({
4646
class: 'icon icon-del clear-key-link',

init.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
p = Redmine::Plugin.register :redmine_message_customize do
88
name 'Redmine message customize plugin'
9-
version '0.1.8'
9+
version '0.1.9'
1010
description 'This is a plugin that allows messages in Redmine to be overwritten from the admin view'
1111
author 'Far End Technologies Corporation'
1212
url 'https://github.com/farend/redmine_message_customize'

test/functional/custom_message_settings_controller_test.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ def test_edit
2222
assert_select 'a#tab-normal'
2323
assert_select 'a#tab-yaml'
2424
end
25+
assert_select 'div#edit-custom-messages input[name=?]', 'settings[custom_messages][label_home]'
2526
end
2627
def test_edit_except_admin_user
2728
@request.session[:user_id] = 2

0 commit comments

Comments
 (0)