* Modify the problem of can select project in classic mode.

This commit is contained in:
qiyu-xie
2021-08-23 14:22:08 +08:00
parent 56c3453dd7
commit f95496efe3
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1259,7 +1259,7 @@ class docModel extends model
$orderedExecutions = array();
foreach($executions as $id => $execution)
{
$execution->name = zget($projectPairs, $execution->project) . ' / ' . $execution->name;
$execution->name = $this->config->systemMode == 'new' ? zget($projectPairs, $execution->project) . ' / ' . $execution->name : $execution->name;
if($execution->status != 'done' and $execution->status != 'closed' and $execution->PM == $this->app->user->account)
{
@@ -2070,7 +2070,7 @@ class docModel extends model
if($this->app->openApp == 'doc' and $type != 'custom' and $type != 'book')
{
$objectTitle = $type == 'execution' ? substr($objects[$objectID], strpos($objects[$objectID], '/') + 1) : $objects[$objectID];
$objectTitle = ($this->config->systemMode == 'new' and $type == 'execution') ? substr($objects[$objectID], strpos($objects[$objectID], '/') + 1) : $objects[$objectID];
$output = <<<EOT
<div class='btn-group angle-btn'>
+1 -1
View File
@@ -31,7 +31,7 @@ td.hours {text-align: right; overflow: hidden; text-overflow: ellipsis; white-sp
<?php foreach($lang->execution->featureBar['all'] as $key => $label):?>
<?php echo html::a($this->createLink($this->app->rawModule, $this->app->rawMethod, "status=$key&projectID=$projectID&orderBy=$orderBy&productID=$productID"), "<span class='text'>{$label}</span>", '', "class='btn btn-link' id='{$key}Tab' data-app='$from'");?>
<?php endforeach;?>
<?php if($from == 'execution'):?>
<?php if($from == 'execution' and $this->config->systemMode == 'new'):?>
<div class='input-control w-150px'>
<?php echo html::select('project', $projects, $projectID, "class='form-control chosen' data-placeholder='{$lang->execution->selectProject}'");?>
</div>