From 9a85696d909f5a7199bd1a836c164f1e45487f8f Mon Sep 17 00:00:00 2001 From: kdeterme Date: Wed, 7 Oct 2026 11:40:57 +0200 Subject: [PATCH] fix(stock): escapejs translated option text in batch location selects --- loko/stock/templates/stock/mobile/new_stock_batch_mobile.html | 4 ++-- loko/stock/templates/stock/new_stock_batch.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/loko/stock/templates/stock/mobile/new_stock_batch_mobile.html b/loko/stock/templates/stock/mobile/new_stock_batch_mobile.html index 1970c45..cd88265 100644 --- a/loko/stock/templates/stock/mobile/new_stock_batch_mobile.html +++ b/loko/stock/templates/stock/mobile/new_stock_batch_mobile.html @@ -458,11 +458,11 @@ function resetLocationSelects(lineEl) { const lineSource = lineEl.querySelector('.source-location-select'); const lineDest = lineEl.querySelector('.destination-location-select'); if (lineSource) { - lineSource.innerHTML = ''; + lineSource.innerHTML = ''; lineSource.disabled = true; } if (lineDest) { - lineDest.innerHTML = ''; + lineDest.innerHTML = ''; lineDest.disabled = true; } const sHint = lineEl.querySelector('.source-stock-hint'); diff --git a/loko/stock/templates/stock/new_stock_batch.html b/loko/stock/templates/stock/new_stock_batch.html index be95be2..0b09d4c 100644 --- a/loko/stock/templates/stock/new_stock_batch.html +++ b/loko/stock/templates/stock/new_stock_batch.html @@ -560,11 +560,11 @@ function resetLocationSelects(lineEl) { const lineSource = lineEl.querySelector('.source-location-select'); const lineDest = lineEl.querySelector('.destination-location-select'); if (lineSource) { - lineSource.innerHTML = ''; + lineSource.innerHTML = ''; lineSource.disabled = true; } if (lineDest) { - lineDest.innerHTML = ''; + lineDest.innerHTML = ''; lineDest.disabled = true; } const sHint = lineEl.querySelector('.source-stock-hint');