mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-06 01:08:21 +01:00
(bug) broken notifications
This commit is contained in:
parent
60793815ce
commit
f33a0d7657
@ -6,7 +6,7 @@
|
|||||||
- Fix a bug: unable to subscribe with a payment schedule using PayZen
|
- Fix a bug: unable to subscribe with a payment schedule using PayZen
|
||||||
- Fix a bug: unable to list supporting documents types for a deleted group
|
- Fix a bug: unable to list supporting documents types for a deleted group
|
||||||
- Fix a bug: notification is broken when updating payzen currency
|
- Fix a bug: notification is broken when updating payzen currency
|
||||||
- Fix a bug: broken admin notifications if an order has been paid
|
- Fix a bug: broken notifications
|
||||||
- Fix a bug: unable to bulk update settings
|
- Fix a bug: unable to bulk update settings
|
||||||
|
|
||||||
## v6.0.1 2023 April 03
|
## v6.0.1 2023 April 03
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
json.title notification.notification_type
|
json.title notification.notification_type
|
||||||
json.description "#{t('.auto_cancelled_training', {
|
json.description "#{t('.auto_cancelled_training', **{
|
||||||
TRAINING: notification.attached_object.trainings.first.name,
|
TRAINING: notification.attached_object.trainings.first.name,
|
||||||
DATE: I18n.l(notification.attached_object.start_at.to_date)
|
DATE: I18n.l(notification.attached_object.start_at.to_date)
|
||||||
})} #{notification.meta_data['auto_refund'] ? t('.auto_refund') : t('.manual_refund')}"
|
})} #{notification.meta_data['auto_refund'] ? t('.auto_refund') : t('.manual_refund')}"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
json.title notification.notification_type
|
json.title notification.notification_type
|
||||||
json.description t('.training_authorization_revoked', { MACHINES: notification.attached_object.machines.map(&:name).join(', ') })
|
json.description t('.training_authorization_revoked', **{ MACHINES: notification.attached_object.machines.map(&:name).join(', ') })
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
json.title notification.notification_type
|
json.title notification.notification_type
|
||||||
json.description "#{t('.auto_cancelled_training', {
|
json.description "#{t('.auto_cancelled_training', **{
|
||||||
TRAINING: notification.attached_object.reservation.reservable.name,
|
TRAINING: notification.attached_object.reservation.reservable.name,
|
||||||
DATE: I18n.l(notification.attached_object.slot.start_at.to_date)
|
DATE: I18n.l(notification.attached_object.slot.start_at.to_date)
|
||||||
})} #{notification.meta_data['auto_refund'] ? t('.auto_refund') : ''}"
|
})} #{notification.meta_data['auto_refund'] ? t('.auto_refund') : ''}"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
json.title notification.notification_type
|
json.title notification.notification_type
|
||||||
json.description t('.invalidated', { MACHINES: notification.attached_object.machines.map(&:name).join(', ') })
|
json.description t('.invalidated', **{ MACHINES: notification.attached_object.machines.map(&:name).join(', ') })
|
||||||
|
@ -30,7 +30,6 @@ class FabManager::Application < Rails::Application
|
|||||||
# Initialize configuration defaults for originally generated Rails version.
|
# Initialize configuration defaults for originally generated Rails version.
|
||||||
config.load_defaults 7.0
|
config.load_defaults 7.0
|
||||||
config.active_support.cache_format_version = 6.1
|
config.active_support.cache_format_version = 6.1
|
||||||
config.action_dispatch.cookies_serializer = :hybrid
|
|
||||||
config.active_record.verify_foreign_keys_for_fixtures = false
|
config.active_record.verify_foreign_keys_for_fixtures = false
|
||||||
# prevent this new behavior with rails >= 5.0
|
# prevent this new behavior with rails >= 5.0
|
||||||
# see https://edgeguides.rubyonrails.org/upgrading_ruby_on_rails.html#active-record-belongs-to-required-by-default-option
|
# see https://edgeguides.rubyonrails.org/upgrading_ruby_on_rails.html#active-record-belongs-to-required-by-default-option
|
||||||
|
Loading…
x
Reference in New Issue
Block a user