From a86cb3e804b63a565b1c8a535a7ba5a5f520c7eb Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Fri, 12 Apr 2024 23:26:28 +0200 Subject: [PATCH] JS translation syntax error (stock-badge in search window) (#7013) Fixes #7011 --- .../InvenTree/templates/js/translated/model_renderers.js | 2 +- src/backend/InvenTree/templates/js/translated/return_order.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/InvenTree/templates/js/translated/model_renderers.js b/src/backend/InvenTree/templates/js/translated/model_renderers.js index cae1c5e4fc..66b05bf44d 100644 --- a/src/backend/InvenTree/templates/js/translated/model_renderers.js +++ b/src/backend/InvenTree/templates/js/translated/model_renderers.js @@ -218,7 +218,7 @@ function renderStockItem(data, parameters={}) { } if (data.quantity == 0) { - stock_detail = `{% trans "No Stock"% }`; + stock_detail = `{% trans "No Stock" %}`; } else { if (data.serial && data.quantity == 1) { stock_detail = `{% trans "Serial Number" %}: ${data.serial}`; diff --git a/src/backend/InvenTree/templates/js/translated/return_order.js b/src/backend/InvenTree/templates/js/translated/return_order.js index 78ef11e4ad..b699bd8422 100644 --- a/src/backend/InvenTree/templates/js/translated/return_order.js +++ b/src/backend/InvenTree/templates/js/translated/return_order.js @@ -488,7 +488,7 @@ function receiveReturnOrderItems(order_id, line_items, options={}) { if (line_items.length == 0) { showAlertDialog( - '{% trans "Select Line Items"% }', + '{% trans "Select Line Items" %}', '{% trans "At least one line item must be selected" %}' ); return;