From 9502610eced3286b87e829cf30a6f2802a1c41e4 Mon Sep 17 00:00:00 2001 From: liyuchun Date: Mon, 22 Nov 2021 08:39:34 +0800 Subject: [PATCH] * Fix error for task #44358. --- module/execution/js/executionkanban.js | 1 + module/execution/view/start.html.php | 2 +- module/project/js/kanban.js | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/module/execution/js/executionkanban.js b/module/execution/js/executionkanban.js index 33f6bfeb60..373b92e045 100644 --- a/module/execution/js/executionkanban.js +++ b/module/execution/js/executionkanban.js @@ -81,6 +81,7 @@ function findDropColumns($element, $root) */ function changeCardColType(card, fromColType, toColType, kanbanID) { + if(typeof card == 'undefined') return false; var cardID = card.id; var executionID = cardID.substr(cardID.indexOf("-") + 1);; var showIframe = false; diff --git a/module/execution/view/start.html.php b/module/execution/view/start.html.php index 73137af125..43cc98ccad 100644 --- a/module/execution/view/start.html.php +++ b/module/execution/view/start.html.php @@ -5,7 +5,7 @@ * @copyright Copyright 2009-2015 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com) * @license ZPL (http://zpl.pub/page/zplv12.html) * @author Chunsheng Wang - * @package execution + * @package execution * @version $Id: start.html.php 935 2013-01-16 07:49:24Z wwccss@gmail.com $ * @link http://www.zentao.net */ diff --git a/module/project/js/kanban.js b/module/project/js/kanban.js index 94447b1986..147c67aad2 100644 --- a/module/project/js/kanban.js +++ b/module/project/js/kanban.js @@ -99,6 +99,7 @@ function findDropColumns($element, $root) */ function changeCardColType(card, fromColType, toColType, kanbanID) { + if(typeof card == 'undefined') return false; var cardID = card.id; var projectID = cardID.substr(cardID.indexOf("-") + 1);; var showIframe = false;