* [task#146284,done,1h] finish task.
This commit is contained in:
@@ -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)));
|
||||
|
||||
Reference in New Issue
Block a user