* [refac] Add build label for workflowGroup picker.

This commit is contained in:
wangyidong
2024-11-01 15:50:54 +08:00
committed by 孙广明
parent 95d5d79333
commit cbb2e9555e
3 changed files with 8 additions and 5 deletions
+1 -3
View File
@@ -1732,9 +1732,7 @@ class project extends control
$workflowGroups = $this->loadModel('workflowgroup')->getPairs('project', $model, $hasProduct);
$items = array();
foreach($workflowGroups as $id => $name) $items[] = array('text' => $name, 'value' => $id);
$items = $this->workflowgroup->appendBuildinLabel($workflowGroups);
return $this->send(array('items' => array_values($items), 'defaultValue' => key($workflowGroups)));
}
}