* Fix bug #21374.
This commit is contained in:
@@ -143,7 +143,6 @@ $projectIDParam = $isProjectStory ? "projectID=$projectID&" : '';
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php if(common::canModify('product', $product)):?>
|
||||
<div class='btn-group dropdown'>
|
||||
<?php
|
||||
$createStoryLink = $this->createLink('story', 'create', "product=$productID&branch=$branch&moduleID=$moduleID&storyID=0&projectID=$projectID&bugID=0&planID=0&todoID=0&extra=&type=$storyType");
|
||||
@@ -228,7 +227,6 @@ $projectIDParam = $isProjectStory ? "projectID=$projectID&" : '';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
|
||||
@@ -229,7 +229,9 @@ class story extends control
|
||||
/* Set products, users and module. */
|
||||
if($objectID != 0)
|
||||
{
|
||||
$products = $this->product->getProductPairsByProject($objectID);
|
||||
global $config;
|
||||
$onlyNoClosed = empty($config->CRProduct) ? 'noclosed' : '';
|
||||
$products = $this->product->getProductPairsByProject($objectID, $onlyNoClosed);
|
||||
$productID = empty($productID) ? key($products) : $productID;
|
||||
$product = $this->product->getById(($productID and array_key_exists($productID, $products)) ? $productID : key($products));
|
||||
$productBranches = $product->type != 'normal' ? $this->loadModel('execution')->getBranchByProduct($productID, $objectID) : array();
|
||||
|
||||
Reference in New Issue
Block a user