From a91ebce2fbcfa29dd5608d2df5d7e9040a5bb79a Mon Sep 17 00:00:00 2001 From: tianshujie98 Date: Mon, 14 Dec 2020 10:38:06 +0800 Subject: [PATCH] * Fix bug. --- module/repo/control.php | 2 +- module/repo/view/edit.html.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/repo/control.php b/module/repo/control.php index ae450759ef..51d67b4a99 100644 --- a/module/repo/control.php +++ b/module/repo/control.php @@ -129,7 +129,7 @@ class repo extends control $this->view->repoID = $repoID; $this->view->groups = $this->loadModel('group')->getPairs(); $this->view->users = $this->loadModel('user')->getPairs('noletter|noempty|nodeleted'); - $this->view->programs = $this->loadModel('program')->getPairs(); + $this->view->programs = $this->loadModel('program')->getPRJPairs(); $this->view->title = $this->lang->repo->common . $this->lang->colon . $this->lang->repo->edit; $this->view->position[] = html::a(inlink('maintain'), $this->lang->repo->common); diff --git a/module/repo/view/edit.html.php b/module/repo/view/edit.html.php index 2f947050e1..7ed12f948f 100644 --- a/module/repo/view/edit.html.php +++ b/module/repo/view/edit.html.php @@ -28,7 +28,7 @@ - +
repo->program; ?>program, "class='form-control chosen' multiple"); ?>PRJ, "class='form-control chosen' multiple"); ?>
repo->type; ?>