From 9e6c7dad88b4e9715f7ff03474b004466e1e9ef9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20d=27Anterroches?= Date: Wed, 11 Aug 2010 14:12:03 +0200 Subject: [PATCH] Fixed to use the private status and the description from the template when creating a project. --- src/IDF/Form/Admin/ProjectCreate.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/IDF/Form/Admin/ProjectCreate.php b/src/IDF/Form/Admin/ProjectCreate.php index 1ba8561..3e5b0cb 100644 --- a/src/IDF/Form/Admin/ProjectCreate.php +++ b/src/IDF/Form/Admin/ProjectCreate.php @@ -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