Merge branch '15.0.beta3' of http://gitlab.zcorp.cc/easycorp/zentaopms into 15.0.beta3
This commit is contained in:
@@ -145,6 +145,8 @@ class stakeholder extends control
|
||||
public function edit($stakeholderID = 0)
|
||||
{
|
||||
$stakeholder = $this->stakeholder->getByID($stakeholderID);
|
||||
$this->loadModel('project')->setMenu($stakeholder->objectID);
|
||||
|
||||
if($_POST)
|
||||
{
|
||||
$changes = $this->stakeholder->edit($stakeholderID);
|
||||
@@ -318,11 +320,14 @@ class stakeholder extends control
|
||||
*/
|
||||
public function view($userID = 0)
|
||||
{
|
||||
$user = $this->stakeholder->getByID($userID);
|
||||
$this->loadModel('project')->setMenu($user->objectID);
|
||||
$this->commonAction($userID, 'stakeholder');
|
||||
|
||||
$this->view->title = $this->lang->stakeholder->common . $this->lang->colon . $this->lang->stakeholder->view;
|
||||
$this->view->position[] = $this->lang->stakeholder->view;
|
||||
|
||||
$this->view->user = $this->stakeholder->getByID($userID);
|
||||
$this->view->user = $user;
|
||||
$this->view->users = $this->loadModel('execution')->getTeamMemberPairs($this->session->project,'nodeleted');
|
||||
$this->view->expects = $this->stakeholder->getExpectByUser($userID);
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<?php echo html::select('dept', $depts, $dept, "class='form-control chosen' onchange='setDeptUsers(this)' data-placeholder='{$lang->execution->selectDeptTitle}'");?>
|
||||
</div>
|
||||
<?php if($project->parent and $config->systemMode == 'new'):?>
|
||||
<?php echo html::a($this->createLink('stakeholder', 'batchcreate', "dept=&parent=$project->parent"), $lang->program->importStakeholder, '', 'class="btn btn-primary"');?>
|
||||
<?php echo html::a($this->createLink('stakeholder', 'batchcreate', "projectID={$projectID}&dept=&parent=$project->parent"), $lang->program->importStakeholder, '', 'class="btn btn-primary"');?>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user