Indefero

Indefero Commit Details


Date:2010-08-11 07:42:06 (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:7a2065c6877dcb85455fcd636e36c1f8d78b59a4
Parents: 9e6c7dad88b4e9715f7ff03474b004466e1e9ef9
Message:Fixed to correctly use the default values if the template project was not fully updated.

Changes:

File differences

src/IDF/Form/Admin/ProjectCreate.php
255255
256256
257257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277277
278
279
278
279
280280
281281
282282
// We need to get all the configuration variables we want from
// the old project and put them into the new project.
$props = array(
'labels_download_predefined',
'labels_download_one_max',
'labels_wiki_predefined',
'labels_wiki_one_max',
'labels_issue_open',
'labels_issue_closed',
'labels_issue_predefined',
'labels_issue_one_max',
'webhook_url',
'downloads_access_rights',
'review_access_rights',
'wiki_access_rights',
'source_access_rights',
'issues_access_rights',
'downloads_notification_email',
'review_notification_email',
'wiki_notification_email',
'source_notification_email',
'issues_notification_email',
'labels_download_predefined' => IDF_Form_UploadConf::init_predefined,
'labels_download_one_max' => IDF_Form_UploadConf::init_one_max,
'labels_wiki_predefined' => IDF_Form_WikiConf::init_predefined,
'labels_wiki_one_max' => IDF_Form_WikiConf::init_one_max,
'labels_issue_open' => IDF_Form_IssueTrackingConf::init_open,
'labels_issue_closed' => IDF_Form_IssueTrackingConf::init_closed,
'labels_issue_predefined' => IDF_Form_IssueTrackingConf::init_predefined,
'labels_issue_one_max' => IDF_Form_IssueTrackingConf::init_one_max,
'webhook_url' => '',
'downloads_access_rights' => 'all',
'review_access_rights' => 'all',
'wiki_access_rights' => 'all',
'source_access_rights' => 'all',
'issues_access_rights' => 'all',
'downloads_notification_email' => '',
'review_notification_email' => '',
'wiki_notification_email' => '',
'source_notification_email' => '',
'issues_notification_email' => '',
);
foreach ($props as $prop) {
$conf->setVal($prop, $tmplconf->getVal($prop));
foreach ($props as $prop => $def) {
$conf->setVal($prop, $tmplconf->getVal($prop, $def));
}
}
$project->created();

Archive Download the corresponding diff file

Page rendered in 0.07948s using 13 queries.