We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a97570b commit 460040dCopy full SHA for 460040d
app/models/custom_message_setting.rb
@@ -26,7 +26,7 @@ def custom_messages_with_timestamp(lang)
26
def latest_messages_applied?(lang)
27
return true if self.new_record?
28
29
- redmine_message_customize_timestamp = I18n.backend.send(:translations)[:"#{lang}"][:redmine_message_customize_timestamp]
+ redmine_message_customize_timestamp = I18n.backend.send(:translations)[:"#{lang}"]&.[](:redmine_message_customize_timestamp)
30
redmine_message_customize_timestamp == self.updated_on.to_i.to_s
31
end
32
0 commit comments