From a14f0f0843bf6e793905c2210d21d1be97b9de10 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 21 Nov 2023 13:36:17 +0100 Subject: [PATCH] Bug 35374: Remove ES6 template literals to fix translation strings The .po files contains the whole block after this line. I don't really understand what's happening but this change fixes the problem. Test plan: 1. Run the following command before and after the patch and compare the diff % gulp po:update --lang de-DE --task messages-js 2. Confirm that the list on this vue is correctly populated Signed-off-by: Matt Blenkinsop --- .../vue/components/ERM/UsageStatisticsProviderDataList.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsProviderDataList.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsProviderDataList.vue index 2f4d8ee1c38..0f0f6a2ef74 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsProviderDataList.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsProviderDataList.vue @@ -57,7 +57,10 @@ export default { ) }, table_url() { - let url = `/api/v1/erm/usage_${this.data_type}s?usage_data_provider_id=${this.$route.params.usage_data_provider_id}` + let url = "/api/v1/erm/usage_%ss?usage_data_provider_id=%s".format( + this.data_type, + this.$route.params.usage_data_provider_id + ) return url }, getTableColumns() { -- 2.42.1