From 82895b18d2d3e90ef25c00e8dfff4977af95cc96 Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Mon, 14 Feb 2022 10:50:06 +0800 Subject: [PATCH] * Fix bug #19471. --- module/program/control.php | 30 ++---------------------------- www/theme/default/style.css | 2 +- 2 files changed, 3 insertions(+), 29 deletions(-) diff --git a/module/program/control.php b/module/program/control.php index f8dfbac729..d98d80ad10 100644 --- a/module/program/control.php +++ b/module/program/control.php @@ -489,35 +489,9 @@ class program extends control * @access public * @return void */ - public function createStakeholder($programID = 0, $dept = '', $parentIdList = '') + public function createStakeholder($programID = 0) { - if($_POST) - { - $this->program->createStakeholder($programID); - die(js::locate($this->createLink('program', 'stakeholder', "programID=$programID"), 'parent')); - } - - $this->program->setMenu($programID); - - $this->loadModel('user'); - $this->lang->program->switcherMenu = $this->program->getSwitcher($programID, true); - - $this->loadModel('dept'); - $deptUsers = $dept === '' ? array() : $this->dept->getDeptUserPairs($dept); - - $this->view->title = $this->lang->program->createStakeholder; - $this->view->position[] = $this->lang->program->createStakeholder; - - $this->view->programID = $programID; - $this->view->program = $this->program->getByID($programID); - $this->view->users = $this->loadModel('user')->getPairs('nodeleted|noclosed'); - $this->view->deptUsers = $deptUsers; - $this->view->dept = $dept; - $this->view->depts = array('' => '') + $this->dept->getOptionMenu(); - $this->view->stakeholders = $this->program->getStakeholders($programID, 't1.id_desc'); - $this->view->parentStakeholders = $this->program->getStakeholdersByPrograms($parentIdList); - - $this->display(); + return print($this->fetch('stakeholder', 'create', "objectID=$programID")); } /** diff --git a/www/theme/default/style.css b/www/theme/default/style.css index 69c92d3db6..3efe1c7a99 100644 --- a/www/theme/default/style.css +++ b/www/theme/default/style.css @@ -84,4 +84,4 @@ a.showMoreImage:hover {opacity: 1;} #headerActions .dropdown-menu {top: 35px; z-index: 2000;} #headerActions .dropdown-menu:before, #headerActions .dropdown-menu:hover:before {position: absolute; top: -9px; right: 50%; width: 0; height: 0; content: ' '; border-color: transparent transparent #fff transparent; border-style: solid; border-width: 0 10px 10px 10px;} -.icon-size-width:before {content: "\e9c5"; transform: rotate(90deg); -ms-transform: rotate(90deg); -moz-transform: rotate(90deg); -webkit-transform: rotate(90deg); -o-transform: rotate(90deg); +.icon-size-width:before {content: "\e9c5"; transform: rotate(90deg); -ms-transform: rotate(90deg); -moz-transform: rotate(90deg); -webkit-transform: rotate(90deg); -o-transform: rotate(90deg)};