* Adjust for sonar.

This commit is contained in:
wangyidong
2023-06-10 14:44:54 +08:00
parent ca4bf100ea
commit b40c1fec02
+22 -19
View File
@@ -33,26 +33,29 @@ featureBar
);
/* Set right toolbar. */
$branchStatus == 'closed' ? null : toolbar
(
!common::hasPriv('project', 'manageProducts') ? null : item(set(array
if($branchStatus != 'closed')
{
toolbar
(
'icon' => 'link',
'text' => $lang->product->link2Project,
'class' => "secondary",
'url' => '#link2Project',
'data-toggle' => 'modal'
))),
!common::hasPriv('project', 'create') ? null : item(set(array
(
'icon' => 'plus',
'text' => $lang->project->create,
'class' => "primary create-project-btn",
'url' => $this->createLink('project', 'createGuide', "programID=$product->program&from=project&productID={$product->id}&branchID=$branchID", '', true),
'data-toggle' => 'modal',
'data-type' => 'ajax',
)))
);
!common::hasPriv('project', 'manageProducts') ? null : item(set(array
(
'icon' => 'link',
'text' => $lang->product->link2Project,
'class' => "secondary",
'url' => '#link2Project',
'data-toggle' => 'modal'
))),
!common::hasPriv('project', 'create') ? null : item(set(array
(
'icon' => 'plus',
'text' => $lang->project->create,
'class' => "primary create-project-btn",
'url' => $this->createLink('project', 'createGuide', "programID=$product->program&from=project&productID={$product->id}&branchID=$branchID", '', true),
'data-toggle' => 'modal',
'data-type' => 'ajax',
)))
);
}
/* Create link2Project modal. */
div