This commit is contained in:
caoyanyi
2022-04-18 10:03:47 +08:00
parent 7aeeb96c42
commit e98d1ac4ab
2 changed files with 11 additions and 0 deletions
+9
View File
@@ -749,6 +749,14 @@ class project extends control
$this->app->loadClass('pager', $static = true);
$pager = new pager(0, 30, 1);
/* Check exist extend fields. */
$hasExtend = false;
if(!empty($this->config->bizVersion))
{
$extend = $this->loadModel('workflowaction')->getByModuleAndAction('project', 'view');
if(!empty($extend) and $extend->extensionType == 'extend') $hasExtend = true;
}
$this->view->title = $this->lang->project->view;
$this->view->position = $this->lang->project->view;
$this->view->projectID = $projectID;
@@ -762,6 +770,7 @@ class project extends control
$this->view->planGroup = $this->loadModel('execution')->getPlans($products);
$this->view->branchGroups = $this->loadModel('branch')->getByProducts(array_keys($products), '', $linkedBranches);
$this->view->dynamics = $this->loadModel('action')->getDynamic('all', 'all', 'date_desc', $pager, 'all', $projectID);
$this->view->hasExtend = $hasExtend;
$this->display();
}
+2
View File
@@ -81,11 +81,13 @@
</div>
</div>
</div>
<?php if($hasExtend):?>
<div class="col-sm-12">
<div class='panel'>
<?php $this->printExtendFields($project, 'div', "position=left&inForm=0");?>
</div>
</div>
<?php endif;?>
<div class="col-sm-12">
<?php $blockHistory = true;?>
<?php $actionFormLink = $this->createLink('action', 'comment', "objectType=project&objectID=$project->id");?>