* Fix bugs.

This commit is contained in:
Yagami
2020-10-21 09:53:39 +08:00
parent c0e5bf03f0
commit ec4dd58fb7
6 changed files with 7 additions and 5 deletions
+1
View File
@@ -581,6 +581,7 @@ $lang->navGroup->productplan = 'product';
$lang->navGroup->release = 'product';
$lang->navGroup->branch = 'product';
$lang->navGroup->project = 'project';
$lang->navGroup->story = 'project';
$lang->navGroup->tree = 'project';
$lang->navGroup->task = 'project';
+2 -2
View File
@@ -1638,8 +1638,8 @@ EOD;
{
$this->app->user = $this->session->user;
$inProgram = isset($this->lang->navGroup->$module) && $this->lang->navGroup->$module == 'project';
if(!defined('IN_UPGRADE') and $inProgram)
$inProject = (isset($this->lang->navGroup->$module) && $this->lang->navGroup->$module == 'project') || ($module == 'program' && $method == 'index');
if(!defined('IN_UPGRADE') and $inProject)
{
/* Check program priv. */
if(strpos(",{$this->app->user->view->projects},", ",{$this->session->PRJ},") === false and !$this->app->user->admin) $this->loadModel('program')->accessDenied();
+1
View File
@@ -0,0 +1 @@
#budget {border-right:0px;}
+1 -1
View File
@@ -1331,7 +1331,7 @@ class programModel extends model
echo $project->code;
break;
case 'PRJName':
echo html::a(helper::createLink('program', 'index', "projectID=$project->id"), $project->name);
echo html::a(helper::createLink('program', 'index', "projectID=$project->id", '', '', $project->id), $project->name);
break;
case 'PRJModel':
echo zget($this->lang->program->modelList, $project->model);
@@ -14,7 +14,7 @@ $programsPinYin = common::convert2Pinyin($programNames);
</div>
<div class="col-footer">
<div class='pull-left'>
<?php echo html::a(helper::createLink('program', 'browse', 'status=all'), '<i class="icon icon-cards-view muted"></i> ' . $lang->project->all, '', 'class="not-list-item"'); ?>
<?php echo html::a(helper::createLink('program', 'pgmbrowse', 'status=all'), '<i class="icon icon-cards-view muted"></i> ' . $lang->project->all, '', 'class="not-list-item"'); ?>
</div>
<div class='pull-right'>
<?php echo html::checkbox('showClosed', array('1' => $lang->program->PGMShowClosed), '', $this->cookie->showClosed ? 'checked=checked' : '');?>
+1 -1
View File
@@ -29,7 +29,7 @@
</tr>
<tr>
<th><?php echo $lang->program->PGMParent;?></th>
<td><?php echo html::select('parent', $parents, $project->parent, "class='form-control chosen' onchange='setAclList(this.value)");?></td><td></td><td></td>
<td><?php echo html::select('parent', $parents, $project->parent, "class='form-control chosen' onchange='setAclList(this.value)'");?></td><td></td><td></td>
</tr>
<tr>
<th><?php echo $lang->program->PRJName;?></th>