diff --git a/module/project/control.php b/module/project/control.php index 67d0753b65..e687df1e20 100644 --- a/module/project/control.php +++ b/module/project/control.php @@ -749,6 +749,14 @@ class project extends control $this->app->loadClass('pager', $static = true); $pager = new pager(0, 30, 1); + /* Check exist extend fields. */ + $isExtended = false; + if(!empty($this->config->bizVersion)) + { + $extend = $this->loadModel('workflowaction')->getByModuleAndAction('project', 'view'); + if(!empty($extend) and $extend->extensionType == 'extend') $isExtended = 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->isExtended = $isExtended; $this->display(); } diff --git a/module/project/view/view.html.php b/module/project/view/view.html.php index 0fccfacce9..085887fa70 100644 --- a/module/project/view/view.html.php +++ b/module/project/view/view.html.php @@ -81,11 +81,13 @@ +