* adjust code.
This commit is contained in:
@@ -408,7 +408,7 @@ class bug extends control
|
||||
$moduleOptionMenu = $this->tree->getOptionMenu($productID, $viewType = 'bug', $startModuleID = 0, $branch);
|
||||
if(empty($moduleOptionMenu)) die(js::locate(helper::createLink('tree', 'browse', "productID=$productID&view=story")));
|
||||
|
||||
$productList = $this->loadModel('block')->getProducts('noclosed', '');
|
||||
$productList = $this->product->getOrderedProducts('all');
|
||||
foreach($productList as $product) $products[$product->id] = $product->name;
|
||||
|
||||
/* Set custom. */
|
||||
@@ -1322,7 +1322,7 @@ class bug extends control
|
||||
if($bug->toTask != 0)
|
||||
{
|
||||
$task = $this->task->getById($bug->toTask);
|
||||
if($task->deleted != '1')
|
||||
if(!$task->deleted)
|
||||
{
|
||||
$confirmURL = $this->createLink('task', 'view', "taskID=$bug->toTask");
|
||||
unset($_GET['onlybody']);
|
||||
|
||||
@@ -1688,6 +1688,7 @@ class bugModel extends model
|
||||
$projects = $this->loadModel('project')->getPairs();
|
||||
|
||||
$maxLength = 12;
|
||||
if(common::checkNotCN()) $maxLength = 22;
|
||||
foreach($datas as $projectID => $data)
|
||||
{
|
||||
$data->name = isset($projects[$projectID]) ? $projects[$projectID] : $this->lang->report->undefined;
|
||||
@@ -2311,7 +2312,7 @@ class bugModel extends model
|
||||
if($branch and strpos($bugQuery, '`branch` =') === false) $bugQuery .= " AND `branch` in('0','$branch')";
|
||||
if(strpos($bugQuery, $allBranch) !== false) $bugQuery = str_replace($allBranch, '1', $bugQuery);
|
||||
|
||||
/* Fix bug #2877. */
|
||||
/* Fix bug #2878. */
|
||||
if(strpos($bugQuery, '`resolvedDate`') !== false) $bugQuery .= " AND `resolvedDate` != '0000-00-00 00:00:00'";
|
||||
if(strpos($bugQuery, '`closedDate`') !== false) $bugQuery .= " AND `closedDate` != '0000-00-00 00:00:00'";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user