* Remove the reviewedBy select control in story edit page.

This commit is contained in:
hufangzhou
2021-05-19 15:29:17 +08:00
parent 6295ac3cf8
commit 46e344bf0f
2 changed files with 10 additions and 2 deletions
+9 -1
View File
@@ -606,16 +606,24 @@ class story extends control
$stories = $this->story->getParentStoryPairs($story->product, $story->parent);
if(isset($stories[$storyID])) unset($stories[$storyID]);
/* Get users. */
$users = $this->user->getPairs('pofirst|nodeleted', "$story->assignedTo,$story->openedBy,$story->closedBy");
$reviewedBy = explode(',', trim($reviewedBy, ','));
$reivewerList = '';
foreach($reviewedBy as $reviewer) $reivewerList .= zget($users, $reviewer) . ' ';
$this->story->replaceURLang($story->type);
$this->view->title = $this->lang->story->edit . "STORY" . $this->lang->colon . $this->view->story->title;
$this->view->position[] = $this->lang->story->edit;
$this->view->story = $story;
$this->view->stories = $stories;
$this->view->users = $this->user->getPairs('pofirst|nodeleted', "$story->assignedTo,$story->openedBy,$story->closedBy");
$this->view->users = $users;
$this->view->product = $product;
$this->view->products = $myProducts + $othersProducts;
$this->view->branches = $product->type == 'normal' ? array() : $this->loadModel('branch')->getPairs($story->product);
$this->view->reviewers = $reivewerList;
$this->display();
}
+1 -1
View File
@@ -207,7 +207,7 @@
<?php if($story->reviewedBy):?>
<tr>
<th><?php echo $lang->story->reviewedBy;?></th>
<td><?php echo html::select('reviewedBy[]', $users, str_replace(' ', '', $story->reviewedBy), 'class="form-control chosen" multiple');?></td>
<td><?php echo $reviewers;?></td>
</tr>
<?php endif;?>
<?php if($story->status == 'closed'):?>