From 62753b8ff8c07f0e7352fd4b126970016cf63f99 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Tue, 10 Oct 2023 15:48:29 +0800 Subject: [PATCH] * Fix bug #39382. --- module/product/js/browse.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/module/product/js/browse.js b/module/product/js/browse.js index b17d351f08..d6c6c9404d 100644 --- a/module/product/js/browse.js +++ b/module/product/js/browse.js @@ -107,13 +107,13 @@ $(function() $('#batchUnlinkStory').click(function() { - var storyIdList = ''; - $("input[name^='storyIdList']:checked").each(function() + var storyIdList = []; + $("#productStoryForm input[name^='storyIdList']").each(function() { - storyIdList += $(this).val() + ','; + storyIdList.push($(this).val()); }); - $.get(createLink('projectstory', 'batchUnlinkStory', 'projectID=' + projectID + '&storyIdList=' + storyIdList), function(data) + $.get(createLink('projectstory', 'batchUnlinkStory', 'projectID=' + projectID + '&storyIdList=' + storyIdList.join(',')), function(data) { if(data) {