Fix translation for Date/Date&Time [SCI-9561]

This commit is contained in:
Ivan Kljun 2023-12-06 11:42:40 +01:00
parent 94e8a8d89f
commit 55ee531e23

View file

@ -4,7 +4,7 @@ class RepositoryItemDateNotification < BaseNotification
def message def message
unit = human_readable_unit(column.metadata['reminder_unit'], column.metadata['reminder_value']) unit = human_readable_unit(column.metadata['reminder_unit'], column.metadata['reminder_value'])
I18n.t( I18n.t(
'notifications.notification.item_date_reminder_html', 'notifications.content.item_date_reminder.message_html',
repository_row_name: subject.name, repository_row_name: subject.name,
value: column.metadata['reminder_value'], value: column.metadata['reminder_value'],
units: unit units: unit
@ -29,7 +29,7 @@ class RepositoryItemDateNotification < BaseNotification
if params[:repository_date_time_value_id] if params[:repository_date_time_value_id]
RepositoryDateTimeValue.find(params[:repository_date_time_value_id]).update(notification_sent: true) RepositoryDateTimeValue.find(params[:repository_date_time_value_id]).update(notification_sent: true)
elsif params[:repository_date_value_id] elsif params[:repository_date_value_id]
RepositoryDateVal7ue.find(params[:repository_date_value_id]).update(notification_sent: true) RepositoryDateValue.find(params[:repository_date_value_id]).update(notification_sent: true)
end end
end end