* adjust the copy project feature.

This commit is contained in:
wangchunsheng
2012-09-02 05:53:18 +00:00
parent 15cc3121bb
commit 8c5d04e49c
6 changed files with 14 additions and 3 deletions
+2
View File
@@ -776,6 +776,7 @@ class project extends control
$projectID = $copyProjectID == '' ? $this->project->create() : $this->project->create($copyProjectID);
$this->project->updateProducts($projectID);
if(dao::isError()) die(js::error(dao::getError()));
$this->loadModel('action')->create('project', $projectID, 'opened');
die(js::locate($this->createLink('project', 'create', "projectID=$projectID"), 'parent'));
}
@@ -793,6 +794,7 @@ class project extends control
$this->view->products = $products ;
$this->view->whitelist = $whitelist;
$this->view->acl = $acl ;
$this->view->copyProjectID = $copyProjectID;
$this->display();
}