From 64f8fc1b01307f1d7157460f421abaac9ba9943c Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 14 Aug 2024 16:40:38 +0100 Subject: [PATCH] Bug 10190: Add fallback to 'Default' text for notice Sponsored-by: Glasgow Colleges Library Group --- .../components/Admin/CirculationTriggers/TriggersTable.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Admin/CirculationTriggers/TriggersTable.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Admin/CirculationTriggers/TriggersTable.vue index da01a45e943..c88951c356b 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Admin/CirculationTriggers/TriggersTable.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Admin/CirculationTriggers/TriggersTable.vue @@ -256,7 +256,11 @@ export default { }, handleNotice(notice) { const letter = this.letters.find(letter => letter.code === notice) - return letter ? letter.name : notice + return letter + ? letter.name + ? letter.name + : notice + : this.$__("Default") }, }, } -- 2.47.0