* fix notice for class.

This commit is contained in:
wangyidong
2013-03-01 09:53:27 +00:00
parent 9e93f14550
commit 3117402e7b
2 changed files with 2 additions and 0 deletions

View File

@@ -788,6 +788,7 @@ class projectModel extends model
$products = array_unique($_POST['products']);
foreach($products as $productID)
{
$data = new stdclass();
$data->project = $projectID;
$data->product = $productID;
$this->dao->insert(TABLE_PROJECTPRODUCT)->data($data)->exec();

View File

@@ -133,6 +133,7 @@ class testtask extends control
$projects = $this->dao->select('id, name')->from(TABLE_PROJECT)->where('id')->eq($projectID)->fetchPairs('id');
$builds = $this->dao->select('id, name')->from(TABLE_BUILD)->where('project')->eq($projectID)->fetchPairs('id');
$builds = array('trunk' => 'Trunk') + $builds;
}
/* Create testtask from testtask of test.*/