From b66cb116c3816081439e5f1f3f9e468d82bfc3dc Mon Sep 17 00:00:00 2001 From: sunguangming Date: Fri, 8 Dec 2023 13:01:57 +0800 Subject: [PATCH] * kanban: rename param. --- module/kanban/model.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/module/kanban/model.php b/module/kanban/model.php index 25c77aa869..61041e8806 100755 --- a/module/kanban/model.php +++ b/module/kanban/model.php @@ -91,22 +91,24 @@ class kanbanModel extends model } /** + * 创建区域。 * Create a new region. * * @param object $kanban - * @param object $region + * @param object $fromRegion * @param int $copyRegionID * @param string $from kanban|execution * @param string $param * @access public * @return int */ - public function createRegion(object $kanban, object $region = null, int $copyRegionID = 0, string $from = 'kanban', string $param = '') + public function createRegion(object $kanban, object $fromRegion = null, int $copyRegionID = 0, string $from = 'kanban', string $param = '') { $account = $this->app->user->account; $order = 1; + $region = $fromRegion; - if(!$region) + if(empty($region)) { $maxOrder = $this->dao->select('MAX(`order`) AS maxOrder')->from(TABLE_KANBANREGION) ->where('kanban')->eq($kanban->id)