From a2103757c3cd1c4ecb16baaa876528a1b1b24763 Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Thu, 16 Mar 2023 10:15:12 +0800 Subject: [PATCH] * Code for Bug #32974. --- www/js/my.full.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/js/my.full.js b/www/js/my.full.js index 8dc500a846..baa0e57a5a 100755 --- a/www/js/my.full.js +++ b/www/js/my.full.js @@ -993,7 +993,7 @@ function toggleFold(form, unfoldIdList, objectID, objectType) $parentTd = $form.find('td.has-child'); if($parentTd.length == 0) return false; - var toggleClass = ['product', 'requirement'].includes(objectType) ? 'story-toggle' : 'task-toggle'; + var toggleClass = ['product', 'requirement', 'story'].indexOf(objectType) !== -1 ? 'story-toggle' : 'task-toggle'; var nameClass = ['product', 'productplan'].indexOf(objectType) !== -1 ? 'c-title' : 'c-name'; $form.find('th.' + nameClass).addClass('clearfix').append("");