* Fix bug.

This commit is contained in:
tianshujie98
2020-12-14 10:38:06 +08:00
parent 6db741c5da
commit a91ebce2fb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -28,7 +28,7 @@
<table class='table table-form'>
<tr>
<th><?php echo $lang->repo->program; ?></th>
<td class='required'><?php echo html::select('PRJ[]', $programs, $repo->program, "class='form-control chosen' multiple"); ?></td>
<td class='required'><?php echo html::select('PRJ[]', $programs, $repo->PRJ, "class='form-control chosen' multiple"); ?></td>
</tr>
<tr>
<th class='thWidth'><?php echo $lang->repo->type; ?></th>