From 35c63f46b885174985d47dc68d3fdfa2fdec9dba Mon Sep 17 00:00:00 2001 From: dingguodong Date: Tue, 29 Aug 2023 17:14:56 +0800 Subject: [PATCH] * Rename variable. --- module/execution/control.php | 2 +- module/execution/js/story.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/module/execution/control.php b/module/execution/control.php index ab25cc6321..847e4339e6 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -3621,7 +3621,7 @@ class execution extends control */ public function storySort($executionID) { - $idList = explode(',', trim($this->post->storys, ',')); + $idList = explode(',', trim($this->post->storyList, ',')); $orderBy = $this->post->orderBy; $order = $this->dao->select('*')->from(TABLE_PROJECTSTORY)->where('story')->in($idList)->andWhere('project')->eq($executionID)->orderBy('order_asc')->fetch('order'); diff --git a/module/execution/js/story.js b/module/execution/js/story.js index 1565b077fe..1b3a50a524 100644 --- a/module/execution/js/story.js +++ b/module/execution/js/story.js @@ -20,7 +20,7 @@ $(function() }); $(document).on('click', '.story-toggle', function(e) - { + { var $toggle = $(this); var id = $(this).data('id'); var isCollapsed = $toggle.toggleClass('collapsed').hasClass('collapsed'); @@ -34,7 +34,7 @@ $(function() { var list = ''; for(i = 0; i < data.list.length; i++) list += $(data.list[i].item).attr('data-id') + ','; - $.post(createLink('execution', 'storySort', 'executionID=' + executionID), {'storys' : list, 'orderBy' : orderBy}, function() + $.post(createLink('execution', 'storySort', 'executionID=' + executionID), {'storyList' : list, 'orderBy' : orderBy}, function() { var $target = $(data.element[0]); $target.hide();