* Finish task #55623.
This commit is contained in:
@@ -2293,7 +2293,7 @@ class bug extends control
|
||||
public function ajaxGetDropMenu($productID, $module, $method, $extra = '')
|
||||
{
|
||||
$products = array();
|
||||
if(!empty($extra)) $products = $this->product->getProducts($extra, $this->config->CRProduct ? 'all' : 'noclosed', 'program desc, line desc, ');
|
||||
if(!empty($extra)) $products = $this->product->getProducts($extra, 'all', 'program desc, line desc, ');
|
||||
|
||||
$this->view->link = $this->product->getProductLink($module, $method, $extra);
|
||||
$this->view->productID = $productID;
|
||||
|
||||
@@ -17,7 +17,7 @@ foreach($products as $product)
|
||||
}
|
||||
$productsPinYin = common::convert2Pinyin($productNames);
|
||||
$linkHtml = $this->product->setParamsForLink($module, $link, $projectID, 0);
|
||||
$productsHtml = html::a($linkHtml, $this->lang->bug->allProduct, '', "class='text-important' title='{$this->lang->bug->allProduct}' data-key='" . zget($productsPinYin, $this->lang->bug->allProduct, '') . "' data-app='{$this->app->tab}'");
|
||||
$productsHtml = count($products) > 1 ? html::a($linkHtml, $this->lang->bug->allProduct, '', "class='text-important' title='{$this->lang->bug->allProduct}' data-key='" . zget($productsPinYin, $this->lang->bug->allProduct, '') . "' data-app='{$this->app->tab}'") : '';
|
||||
|
||||
foreach($products as $product)
|
||||
{
|
||||
|
||||
@@ -77,6 +77,12 @@ class productModel extends model
|
||||
{
|
||||
$isQaModule = (strpos(',project,execution,', ",{$this->app->tab},") !== false and strpos(',bug,testcase,testtask,ajaxselectstory,', ",{$this->app->rawMethod},") !== false and isset($products[0])) ? true : false;
|
||||
|
||||
if(count($products) <= 2 and isset($products[0]))
|
||||
{
|
||||
unset($products[0]);
|
||||
$productID = key($products);
|
||||
}
|
||||
|
||||
$this->app->loadLang('product');
|
||||
if(!$isQaModule and !$productID)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user