From d7c0a03f8bf64a3cfdf049f63cfa8e9765611df2 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Tue, 16 Dec 2014 07:20:30 +0000 Subject: [PATCH] * fix a bug. --- module/bug/control.php | 2 +- module/testcase/js/batchcreate.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/bug/control.php b/module/bug/control.php index cf923eaf39..96e07fdf41 100644 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -756,7 +756,7 @@ class bug extends control { $this->bug->resolve($bugID); if(dao::isError()) die(js::error(dao::getError())); - $files = $this->loadModel('file')->saveUpload('task', $taskID); + $files = $this->loadModel('file')->saveUpload('bug', $bugID); $fileAction = !empty($files) ? $this->lang->addFiles . join(',', $files) . "\n" : ''; $actionID = $this->action->create('bug', $bugID, 'Resolved', $fileAction . $this->post->comment, $this->post->resolution); diff --git a/module/testcase/js/batchcreate.js b/module/testcase/js/batchcreate.js index 7903f00900..3930e54b70 100755 --- a/module/testcase/js/batchcreate.js +++ b/module/testcase/js/batchcreate.js @@ -19,7 +19,7 @@ $(document).ready(function() } } } - link = createLink('story', 'ajaxGetProductStories', 'productID=' + productID + '&moduleID=' + module + '&storyID='+ $(this).val() + '&onlyOption=true&status=noclosed'); + link = createLink('story', 'ajaxGetProductStories', 'productID=' + productID + '&moduleID=' + module + '&storyID='+ $(select).val() + '&onlyOption=true&status=noclosed'); $('#story' + index).load(link, function(){$(this).trigger("chosen:updated");}); } if($(select).val() == 'same')