* Format codes.
This commit is contained in:
@@ -216,6 +216,7 @@ class bug extends control
|
||||
* Create a bug.
|
||||
*
|
||||
* @param int $productID
|
||||
* @param string $branch
|
||||
* @param string $extras others params, forexample, projectID=10,moduleID=10
|
||||
* @access public
|
||||
* @return void
|
||||
|
||||
@@ -1507,16 +1507,16 @@ class story extends control
|
||||
$story->verify = str_replace(' ', ' ', $story->verify);
|
||||
}
|
||||
/* fill some field with useful value. */
|
||||
if(isset($products[$story->product])) $story->product = $products[$story->product] . "(#$story->product)";
|
||||
if(isset($relatedModules[$story->module])) $story->module = $relatedModules[$story->module] . "(#$story->module)";
|
||||
if(isset($relatedBranch[$story->branch])) $story->branch = $relatedBranch[$story->branch] . "(#$story->branch)";
|
||||
if(isset($products[$story->product])) $story->product = $products[$story->product] . "(#$story->product)";
|
||||
if(isset($relatedModules[$story->module])) $story->module = $relatedModules[$story->module] . "(#$story->module)";
|
||||
if(isset($relatedBranch[$story->branch])) $story->branch = $relatedBranch[$story->branch] . "(#$story->branch)";
|
||||
if(isset($story->plan))
|
||||
{
|
||||
$plans = '';
|
||||
foreach(explode(',', $story->plan) as $planID)
|
||||
{
|
||||
if(empty($planID)) continue;
|
||||
if(isset($relatedPlans[$planID]))$plans .= $relatedPlans[$planID] . "(#$planID)";
|
||||
if(isset($relatedPlans[$planID])) $plans .= $relatedPlans[$planID] . "(#$planID)";
|
||||
}
|
||||
$story->plan = $plans;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user