* [task#146284,done,1h] finish task.

This commit is contained in:
sunguangming
2025-07-15 09:27:05 +08:00
committed by wangyuting
parent 2d886198d1
commit a92309f568
3 changed files with 6 additions and 3 deletions
+3 -2
View File
@@ -1766,14 +1766,15 @@ class project extends control
*
* @param string $model
* @param int $hasProduct
* @param string $category
* @access public
* @return void
*/
public function ajaxGetWorkflowGroups(string $model, int $hasProduct)
public function ajaxGetWorkflowGroups(string $model, int $hasProduct, string $category)
{
if($this->config->edition == 'open') return false;
$workflowGroups = $this->loadModel('workflowgroup')->getPairs('project', $model, $hasProduct, 'normal', '0');
$workflowGroups = $this->loadModel('workflowgroup')->getPairs('project', $model, $hasProduct, 'normal', '0', $category);
$items = $this->workflowgroup->appendBuildinLabel($workflowGroups);
return $this->send(array('items' => array_values($items), 'defaultValue' => key($workflowGroups)));