* Optimize code.

This commit is contained in:
mayue
2022-05-12 02:58:23 +00:00
parent 4460a50980
commit ac6e3ab491
2 changed files with 4 additions and 6 deletions
+3 -1
View File
@@ -491,7 +491,9 @@ class projectModel extends model
$link = helper::createLink($module, $method, "projectID=%s");
}
elseif($module == 'project' and $method == 'testreport')
{ $link = helper::createLink($module, $method, "projectID=%s"); }
{
$link = helper::createLink($module, $method, "projectID=%s");
}
elseif($module == 'project' and $method == 'build')
{
$link = helper::createLink($module, $method, "projectID=%s");
+1 -5
View File
@@ -87,11 +87,7 @@ foreach($projects as $programID => $programProjects)
}
/* Set link when project redefines permissions. */
if($project->auth == 'reset')
{
$this->loadModel('common')->resetProjectPriv($project->id);
if(!common::hasPriv($module, $method)) $link = helper::createLink('project', 'index', "projectID=%s");
}
if($project->auth == 'reset') $link = helper::createLink('project', 'index', "projectID=%s");
if($project->model != 'scrum') $icon = "<i class='icon icon-{$project->model}'></i> ";
$projectName = $icon . $project->name;