* Code for task#45536.
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user