Indefero

Indefero Commit Details


Date:2010-08-11 07:50:32 (14 years 4 months ago)
Author:Loïc d'Anterroches
Branch:develop, feature-issue_links, feature.better-home, feature.content-md5, feature.diff-whitespace, feature.download-md5, feature.issue-links, feature.issue-of-others, feature.issue-summary, feature.search-filter, feature.webrepos, feature.wiki-default-page, master, release-1.1, release-1.2, release-1.3
Commit:3d1ac97dc34ed13e646dc3fc5b2780095f2135f0
Parents: 7a2065c6877dcb85455fcd636e36c1f8d78b59a4
Message:Correctly uses the private/description from the template project.

Changes:

File differences

src/IDF/Form/Admin/ProjectCreate.php
231231
232232
233233
234
235
234
235
236
237
238
239
240
241
242
243
244
245
236246
237247
238248
......
244254
245255
246256
247
248
249
250
251
252
253257
254258
255259
$project = new IDF_Project();
$project->name = $this->cleaned_data['name'];
$project->shortname = $this->cleaned_data['shortname'];
$project->private = $this->cleaned_data['private_project'];
$project->description = __('Click on the Project Management tab to set the description of your project.');
if ($this->cleaned_data['template'] != '--') {
// Find the template project
$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;
} else {
$project->private = $this->cleaned_data['private_project'];
$project->description = __('Click on the Project Management tab to set the description of your project.');
}
$project->create();
$conf = new IDF_Conf();
$conf->setProject($project);
$conf->setVal($key, $this->cleaned_data[$key]);
}
if ($this->cleaned_data['template'] != '--') {
// Find the template project
$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

Archive Download the corresponding diff file

Page rendered in 0.07681s using 13 queries.