From 737d0cfd3ff0d2531560e0dc04bf6dace0c65d38 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Wed, 2 Apr 2025 13:29:49 +0800 Subject: [PATCH] * [refac bug #36387] Adjust for transfer. --- module/build/tao.php | 2 +- module/transfer/tao.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/build/tao.php b/module/build/tao.php index 183572346f..d4667bfd40 100644 --- a/module/build/tao.php +++ b/module/build/tao.php @@ -25,7 +25,7 @@ class buildTao extends buildModel */ protected function fetchBuilds(array|int $productIdList, string $params = '', int $objectID = 0, string $objectType = '', array $shadows = array(), int $system = 0): array { - $fieldList = 't1.id, t1.name, t1.branch, t1.execution, t1.date, t1.deleted, t3.status as releaseStatus, t3.id as releaseID, t4.type as productType'; + $fieldList = 't1.id, t1.name, t1.product, t1.branch, t1.execution, t1.date, t1.deleted, t3.status as releaseStatus, t3.id as releaseID, t4.type as productType'; if($objectType == 'execution' || $objectType == 'project') $fieldList .= ', t2.status as objectStatus'; return $this->dao->select($fieldList)->from(TABLE_BUILD)->alias('t1') diff --git a/module/transfer/tao.php b/module/transfer/tao.php index 87953c8608..b86762f803 100644 --- a/module/transfer/tao.php +++ b/module/transfer/tao.php @@ -121,7 +121,7 @@ class transferTao extends transferModel /* 根据字段名获取表名。*/ /* Get table name by field name. */ - $table = zget($this->config->objectTables, $field); + $table = zget($this->config->objectTables, $field, ''); if(empty($table)) continue; /* 根据字段名获取关联数据。*/