From 0cf0cb656aeed8264284138b42627dfc62353ecb Mon Sep 17 00:00:00 2001 From: tianshujie Date: Wed, 3 Apr 2024 16:22:28 +0800 Subject: [PATCH] * Fix bug #44792. --- module/product/js/batchedit.ui.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/product/js/batchedit.ui.js b/module/product/js/batchedit.ui.js index 98733062dd..7983019158 100644 --- a/module/product/js/batchedit.ui.js +++ b/module/product/js/batchedit.ui.js @@ -30,9 +30,11 @@ function loadProductLines(e) const $currentRow = $target.closest('tr'); const programID = $currentRow.find('input[name^=program]').val(); const productID = $currentRow.find('input[name^=productIdList]').val(); + const lineID = $currentRow.find('input[name^=line]').val(); const link = $.createLink('product', 'ajaxGetLine', 'programID=' + programID + '&productID=' + productID); $.getJSON(link, function(lines) { $currentRow.find('input[name^="line"]').zui('picker').render({items: lines.items}); + $currentRow.find('input[name^="line"]').zui('picker').$.setValue(lineID); }); }