* [refac bug #36387] Adjust for transfer.

This commit is contained in:
wangyidong
2025-04-02 13:45:58 +08:00
committed by 刘刚
parent 7c8f92334f
commit 737d0cfd3f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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')
+1 -1
View File
@@ -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;
/* 根据字段名获取关联数据。*/