From 1230cb1129dcfb613a3fc8f66ae9e2f4e4031d55 Mon Sep 17 00:00:00 2001 From: Matt Blenkinsop Date: Wed, 16 Oct 2024 09:39:11 +0100 Subject: [PATCH] Bug 38010: Fix null basket names --- .../prog/js/vue/components/Vendors/VendorBaskets.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorBaskets.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorBaskets.vue index 30541341db3..c896fbd65ce 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorBaskets.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorBaskets.vue @@ -117,11 +117,12 @@ export default { searchable: true, orderable: true, render(data, type, row, meta) { + const name = row.name ? row.name : __("Unnamed basket") return ( '' + - escape_str(`${row.name} (#${row.basket_id})`) + + escape_str(`${name} (#${row.basket_id})`) + "" ) }, @@ -139,7 +140,7 @@ export default { ).length if (cancelledOrders) { count += - " (" + cancelledOrders + _(" cancelled") + ")" + " (" + cancelledOrders + __(" cancelled") + ")" } return count }, @@ -176,7 +177,7 @@ export default { count += " (" + recordCount.cancelledBibs.length + - _(" cancelled") + + __(" cancelled") + ")" } return count -- 2.39.3 (Apple Git-146)