Skip to content

Commit

Permalink
Merge pull request #62 from farend/support-rails7.1
Browse files Browse the repository at this point in the history
Support rails7.1
  • Loading branch information
ishikawa999 committed Dec 19, 2023
2 parents 0d8154c + d37a24e commit a0907ee
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/helpers/custom_message_settings_helper.rb
Expand Up @@ -16,7 +16,7 @@ def normal_mode_input_fields(setting, lang)
custom_messages_hash.each do |k, v|
content += content_tag(:p) do
content_tag(:label, k) +
text_field_tag("settings[custom_messages[#{k}]]", v.to_s) +
text_field_tag("settings[custom_messages][#{k}]", v.to_s) +
link_to_function('', '$(this).closest("p").remove();', class: 'icon icon-del clear-key-link')
end
end
Expand Down
2 changes: 1 addition & 1 deletion app/views/custom_message_settings/_messages.html.erb
Expand Up @@ -40,7 +40,7 @@ function AddMessageInputField(key, val){
$('<input>').attr({
type: 'text',
value: val.replace(/.*: /, ''),
name: 'settings[custom_messages[' + key + ']]'
name: 'settings[custom_messages][' + key + ']'
}).appendTo($('#edit-custom-messages .tabular p:first'));
$('<a>').attr({
class: 'icon icon-del clear-key-link',
Expand Down
2 changes: 1 addition & 1 deletion init.rb
Expand Up @@ -6,7 +6,7 @@

p = Redmine::Plugin.register :redmine_message_customize do
name 'Redmine message customize plugin'
version '0.1.8'
version '0.1.9'
description 'This is a plugin that allows messages in Redmine to be overwritten from the admin view'
author 'Far End Technologies Corporation'
url 'https://github.com/farend/redmine_message_customize'
Expand Down
1 change: 1 addition & 0 deletions test/functional/custom_message_settings_controller_test.rb
Expand Up @@ -22,6 +22,7 @@ def test_edit
assert_select 'a#tab-normal'
assert_select 'a#tab-yaml'
end
assert_select 'div#edit-custom-messages input[name=?]', 'settings[custom_messages][label_home]'
end
def test_edit_except_admin_user
@request.session[:user_id] = 2
Expand Down

0 comments on commit a0907ee

Please sign in to comment.