diff --git a/module/custom/js/estimate.js b/module/custom/js/estimate.js index c5c5583630..4c9b5fe6d9 100644 --- a/module/custom/js/estimate.js +++ b/module/custom/js/estimate.js @@ -12,9 +12,9 @@ $(document).ready(function() if($(this).val() == 1) var hourPoint = storyPoint; if($(this).val() == 2) var hourPoint = functionPoint; - convertTitle = convertRelationTitle.replace('%s', hourPoint); - convertTips = convertRelationTips.replace(/%s/g, hourPoint); - submitTips = saveTips.replace(/%s/g, hourPoint); + var convertTitle = convertRelationTitle.replace('%s', hourPoint); + var convertTips = convertRelationTips.replace(/%s/g, hourPoint); + var submitTips = saveTips.replace(/%s/g, hourPoint); $('#title').text(convertTitle); $('#tips').text(convertTips); diff --git a/module/product/model.php b/module/product/model.php index 388d84f041..235ac90792 100644 --- a/module/product/model.php +++ b/module/product/model.php @@ -1554,6 +1554,7 @@ class productModel extends model ->where('project')->eq($projectID) ->andWhere('product')->eq($productID) ->exec(); + $newProducts = $this->dao->select('*')->from(TABLE_PROJECTPRODUCT)->where('project')->eq($projectID)->fetchPairs('product','product'); $this->loadModel('action')->create('project', $projectID, 'Managed', '', join(',', $newProducts)); }