* Code for task#45536.

This commit is contained in:
xieqiyu
2021-12-10 10:57:56 +08:00
parent 821fd3644c
commit ad8ed52f22
16 changed files with 78 additions and 29 deletions
+19
View File
@@ -214,6 +214,25 @@ class project extends control
die($this->lang->project->unlinkExecutionMember);
}
/**
* Ajax get linked products with branch.
*
* @param int $projectID
* @access public
* @return void
*/
public function ajaxGetLinkedProductsWithBranch($projectID)
{
$productsWithBranch = array();
$linkedProducts = $this->project->getBranchesByProject($projectID);
foreach($linkedProducts as $productID => $branches)
{
foreach($branches as $branchID => $branchInfo) $productsWithBranch[$productID][$branchID] = $branchID;
}
die(json_encode($productsWithBranch));
}
/**
* Project index view.
*