mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-17 04:34:24 +00:00
Consolidate translations for hidden field
The string '< Hidden >' was agreed on as a good default, so we will use the hidden_field key. I also moved the definition in en.yml up to the more general area at the start of admin.reports section (before it was hidden between report-specific keys.
This commit is contained in:
@@ -24,9 +24,9 @@ module Orders
|
||||
end
|
||||
|
||||
def mask_customer_names
|
||||
order.bill_address&.assign_attributes(firstname: I18n.t('admin.reports.hidden'),
|
||||
order.bill_address&.assign_attributes(firstname: I18n.t('admin.reports.hidden_field'),
|
||||
lastname: "")
|
||||
order.ship_address&.assign_attributes(firstname: I18n.t('admin.reports.hidden'),
|
||||
order.ship_address&.assign_attributes(firstname: I18n.t('admin.reports.hidden_field'),
|
||||
lastname: "")
|
||||
end
|
||||
|
||||
@@ -37,7 +37,7 @@ module Orders
|
||||
def mask_contact_data
|
||||
order.bill_address&.assign_attributes(phone: "")
|
||||
order.ship_address&.assign_attributes(phone: "")
|
||||
order.assign_attributes(email: I18n.t('admin.reports.hidden'))
|
||||
order.assign_attributes(email: I18n.t('admin.reports.hidden_field'))
|
||||
end
|
||||
|
||||
def mask_address
|
||||
|
||||
Reference in New Issue
Block a user