* Adjust sonar issue for mr.
This commit is contained in:
@@ -56,7 +56,7 @@ class mr extends control
|
||||
$this->session->set('execution', $objectID);
|
||||
$execution = $this->loadModel('execution')->getByID($objectID);
|
||||
$features = $this->execution->getExecutionFeatures($execution);
|
||||
if(!$features['devops']) return $this->locate($this->createLink('execution', 'task', "objectID=$executionID"));
|
||||
if(!$features['devops']) return $this->locate($this->createLink('execution', 'task', "objectID=$objectID"));
|
||||
|
||||
$this->loadModel('execution')->setMenu($objectID);
|
||||
}
|
||||
|
||||
@@ -59,6 +59,7 @@ featureBar
|
||||
set::linkParams("repoID={$repo->id}&mode=status¶m={key}")
|
||||
);
|
||||
|
||||
$linkParams = $app->tab == 'devops' ? "repoID={$repo->id}" : '';
|
||||
toolBar
|
||||
(
|
||||
hasPriv('mr', 'create') ? item(set(array
|
||||
@@ -66,7 +67,7 @@ toolBar
|
||||
'text' => $lang->mr->create,
|
||||
'icon' => 'plus',
|
||||
'class' => 'btn primary',
|
||||
'url' => createLink('mr', 'create', $app->tab == 'devops' ? "repoID={$repo->id}" : '')
|
||||
'url' => createLink('mr', 'create', $linkParams)
|
||||
))) : null
|
||||
);
|
||||
|
||||
|
||||
+1
-1
@@ -178,7 +178,7 @@ class mrZen extends mr
|
||||
* @access protected
|
||||
* @return void
|
||||
*/
|
||||
protected function buildLinkTaskSearchForm(int $MRID, object $product, string $orderBy, int $queryID = 0, array $productExecutions)
|
||||
protected function buildLinkTaskSearchForm(int $MRID, object $product, string $orderBy, int $queryID, array $productExecutions)
|
||||
{
|
||||
$modules = $this->loadModel('tree')->getOptionMenu($product->id, 'task');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user