Fixed to use the private status and the description from the template when creating a project.

master
Loïc d'Anterroches 2010-08-11 14:12:03 +02:00
parent 4f23ea4dd5
commit 9e6c7dad88
1 changed files with 2 additions and 0 deletions

View File

@ -248,6 +248,8 @@ class IDF_Form_Admin_ProjectCreate extends Pluf_Form
$sql = new Pluf_SQL('shortname=%s',
array($this->cleaned_data['template']));
$tmpl = Pluf::factory('IDF_Project')->getOne(array('filter' => $sql->gen()));
$project->private = $tmpl->private;
$project->description = $tmpl->description;
$tmplconf = new IDF_Conf();
$tmplconf->setProject($tmpl);
// We need to get all the configuration variables we want from