| story->duplicateStory;?> | +story->duplicateStory;?> | duplicateStory == 0 ? '' : $story->duplicateStory, "class='form-control'");?> |
|---|---|---|
+
diff --git a/api/v1/entries/stories.php b/api/v1/entries/stories.php index c5f3bf82dd..fa64edb6c2 100644 --- a/api/v1/entries/stories.php +++ b/api/v1/entries/stories.php @@ -54,7 +54,7 @@ class storiesEntry extends entry if(!$productID and isset($this->requestBody->product)) $productID = $this->requestBody->product; if(!$productID) return $this->sendError(400, 'Need product id.'); - $fields = 'title,spec,verify,reviewer,type,parent,plan,module,moduleOptionMenu,source,sourceNote,category,pri,estimate,mailto,keywords,notifyemail,uid'; + $fields = 'title,spec,verify,reviewer,type,parent,plan,module,moduleOptionMenu,source,sourceNote,category,pri,estimate,mailto,keywords,notifyemail,uid,URS'; $this->batchSetPost($fields); /* If reviewer is not post, set needNotReview. */ diff --git a/module/branch/model.php b/module/branch/model.php index ff54cb859b..6e87a07734 100644 --- a/module/branch/model.php +++ b/module/branch/model.php @@ -753,7 +753,9 @@ class branchModel extends model ->andWhere('product')->eq($productID) ->fetchGroup('project'); - $this->dao->delete()->from(TABLE_PROJECTPRODUCT)->where('branch')->in($mergedBranches . ",$targetBranch")->exec(); + $this->dao->delete()->from(TABLE_PROJECTPRODUCT)->where('branch')->in($mergedBranches . ",$targetBranch") + ->andWhere('product')->eq($productID) + ->exec(); foreach($linkedProject as $projectID => $projectProducts) { $plan = 0; diff --git a/module/bug/js/common.js b/module/bug/js/common.js index 96afeeee40..fdd384c8f1 100644 --- a/module/bug/js/common.js +++ b/module/bug/js/common.js @@ -341,7 +341,7 @@ function loadExecutionRelated(executionID) loadExecutionTasks(executionID); loadExecutionStories(executionID); loadExecutionBuilds(executionID); - loadAssignedTo(executionID); + loadAssignedTo(executionID, $('#assignedTo').val()); loadTestTasks($('#product').val(), executionID); } else diff --git a/module/bug/view/edit.html.php b/module/bug/view/edit.html.php index 4872fc2ac6..5b6a8e5805 100644 --- a/module/bug/view/edit.html.php +++ b/module/bug/view/edit.html.php @@ -145,7 +145,12 @@ if($this->app->tab == 'project') js::set('objectID', $bug->project);
| story->duplicateStory;?> | +story->duplicateStory;?> | duplicateStory == 0 ? '' : $story->duplicateStory, "class='form-control'");?> |
|---|---|---|