* Restore code.
This commit is contained in:
@@ -659,8 +659,6 @@ class build extends control
|
||||
$this->config->bug->search['params']['execution']['values'] = $this->loadModel('product')->getExecutionPairsByProduct($build->product, $build->branch, 'id_desc', $this->session->project);
|
||||
$this->config->bug->search['params']['openedBuild']['values'] = $this->build->getBuildPairs($build->product, $branch = 'all', $params = '');
|
||||
$this->config->bug->search['params']['resolvedBuild']['values'] = $this->config->bug->search['params']['openedBuild']['values'];
|
||||
$this->config->bug->search['params']['os']['values'] = $this->bug->getObjectList('os');
|
||||
$this->config->bug->search['params']['browser']['values'] = $this->bug->getObjectList('browser');
|
||||
|
||||
unset($this->config->bug->search['fields']['product']);
|
||||
unset($this->config->bug->search['params']['product']);
|
||||
|
||||
@@ -635,8 +635,6 @@ class execution extends control
|
||||
$this->config->bug->search['params']['plan']['values'] = $this->loadModel('productplan')->getPairs(array_keys($products));
|
||||
$this->config->bug->search['module'] = 'importBug';
|
||||
$this->config->bug->search['params']['confirmed']['values'] = array('' => '') + $this->lang->bug->confirmedList;
|
||||
$this->config->bug->search['params']['os']['values'] = $this->bug->getObjectList('os');
|
||||
$this->config->bug->search['params']['browser']['values'] = $this->bug->getObjectList('browser');
|
||||
|
||||
$this->loadModel('tree');
|
||||
$bugModules = array();
|
||||
|
||||
@@ -3637,8 +3637,6 @@ class executionModel extends model
|
||||
*/
|
||||
public function buildBugSearchForm($products, $queryID, $actionURL, $type = 'execution')
|
||||
{
|
||||
$this->loadModel('bug');
|
||||
|
||||
$modules = array();
|
||||
$builds = array('' => '', 'trunk' => $this->lang->trunk);
|
||||
foreach($products as $product)
|
||||
@@ -3694,8 +3692,6 @@ class executionModel extends model
|
||||
$this->config->bug->search['params']['module']['values'] = $modules;
|
||||
$this->config->bug->search['params']['openedBuild']['values'] = $builds;
|
||||
$this->config->bug->search['params']['resolvedBuild']['values'] = $this->config->bug->search['params']['openedBuild']['values'];
|
||||
$this->config->bug->search['params']['os']['values'] = $this->bug->getObjectList('os');
|
||||
$this->config->bug->search['params']['browser']['values'] = $this->bug->getObjectList('browser');
|
||||
if($productType == 'normal')
|
||||
{
|
||||
unset($this->config->bug->search['fields']['branch']);
|
||||
|
||||
@@ -691,8 +691,6 @@ class mr extends control
|
||||
$this->config->bug->search['params']['openedBuild']['values'] = $this->loadModel('build')->getBuildPairs($productID, $branch = 'all', $params = '');
|
||||
$this->config->bug->search['params']['resolvedBuild']['values'] = $this->loadModel('build')->getBuildPairs($productID, $branch = 'all', $params = '');
|
||||
|
||||
$this->config->bug->search['params']['os']['values'] = $this->getObjectList('os');
|
||||
$this->config->bug->search['params']['browser']['values'] = $this->getObjectList('browser');
|
||||
unset($this->config->bug->search['fields']['product']);
|
||||
if($product->type == 'normal')
|
||||
{
|
||||
|
||||
@@ -652,8 +652,6 @@ class myModel extends model
|
||||
$this->config->bug->search['params']['severity']['values'] = array(0 => '') + $this->lang->bug->severityList;
|
||||
$this->config->bug->search['params']['openedBuild']['values'] = $this->loadModel('build')->getBuildPairs($products);
|
||||
$this->config->bug->search['params']['resolvedBuild']['values'] = $this->config->bug->search['params']['openedBuild']['values'];
|
||||
$this->config->bug->search['params']['os']['values'] = $this->bug->getObjectList('os');
|
||||
$this->config->bug->search['params']['browser']['values'] = $this->bug->getObjectList('browser');
|
||||
|
||||
$this->loadModel('search')->setSearchParams($this->config->bug->search);
|
||||
}
|
||||
|
||||
@@ -815,8 +815,6 @@ class productplan extends control
|
||||
$this->config->bug->search['params']['openedBuild']['values'] = $this->loadModel('build')->getBuildPairs($productID, $branch = 'all', $params = '');
|
||||
$this->config->bug->search['params']['resolvedBuild']['values'] = $this->build->getBuildPairs($productID, $branch = 'all', $params = '');
|
||||
$this->config->bug->search['params']['module']['values'] = $this->loadModel('tree')->getOptionMenu($plan->product, 'bug', 0, $plan->branch);
|
||||
$this->config->bug->search['params']['os']['values'] = $this->bug->getObjectList('os');
|
||||
$this->config->bug->search['params']['browser']['values'] = $this->bug->getObjectList('browser');
|
||||
if($this->config->systemMode == 'new') $this->config->bug->search['params']['project']['values'] = $this->product->getProjectPairsByProduct($productID, $plan->branch);
|
||||
|
||||
unset($this->config->bug->search['fields']['product']);
|
||||
|
||||
@@ -589,8 +589,6 @@ class release extends control
|
||||
$this->config->bug->search['params']['openedBuild']['values'] = $this->loadModel('build')->getBuildPairs($release->product, $branch = 'all', $params = '');
|
||||
$this->config->bug->search['params']['resolvedBuild']['values'] = $this->config->bug->search['params']['openedBuild']['values'];
|
||||
$this->config->bug->search['params']['module']['values'] = $this->loadModel('tree')->getOptionMenu($release->product, 'bug', 0, $release->branch);
|
||||
$this->config->bug->search['params']['os']['values'] = $this->bug->getObjectList('os');
|
||||
$this->config->bug->search['params']['browser']['values'] = $this->bug->getObjectList('browser');
|
||||
if($this->session->currentProductType == 'normal')
|
||||
{
|
||||
unset($this->config->bug->search['fields']['branch']);
|
||||
|
||||
@@ -531,9 +531,6 @@ class upgradeModel extends model
|
||||
$this->processBugLinkBug();
|
||||
break;
|
||||
case '17_4':
|
||||
$this->processCreatedInfo();
|
||||
$this->processCreatedBy();
|
||||
$this->updateApproval();
|
||||
$this->rebuildFULLTEXT();
|
||||
$this->updateSearchIndex();
|
||||
if(!$executedXuanxuan)
|
||||
|
||||
Reference in New Issue
Block a user