* adjust story needReview.

This commit is contained in:
wangyidong
2015-11-27 13:18:45 +08:00
parent 62fc4ac385
commit 998f465811
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -266,6 +266,7 @@ class story extends control
$this->view->spec = $spec;
$this->view->branch = $branch;
$this->view->branches = $this->loadModel('branch')->getPairs($productID);
$this->view->needReview = ($this->app->user->account == $product->PO || $this->config->story->needReview == 0) ? 0 : 1;
$this->display();
}
@@ -467,7 +468,7 @@ class story extends control
$this->view->title = $this->lang->story->change . "STORY" . $this->lang->colon . $this->view->story->title;
$this->view->users = $this->user->getPairs('nodeleted|pofirst', $this->view->story->assignedTo);
$this->view->position[] = $this->lang->story->change;
$this->view->needReview = $this->config->story->needReview == 0 ? "checked='checked'" : "";
$this->view->needReview = ($this->app->user->account == $this->view->product->PO || $this->config->story->needReview == 0) ? "checked='checked'" : "";
$this->display();
}
+1 -1
View File
@@ -55,7 +55,7 @@
<td><?php echo html::input("estimate[$i]", $estimate, "class='form-control' autocomplete='off'");?></td>
<td>
<?php
echo html::select("needReview[$i]", $lang->story->reviewList, 0, "class='form-control'");
echo html::select("needReview[$i]", $lang->story->reviewList, $needReview, "class='form-control'");
echo html::hidden("uploadImage[$i]", $fileName);
?>
</td>