Indefero

Indefero Commit Details


Date:2012-01-03 10:09:41 (12 years 11 months ago)
Author:Thomas Keller
Branch:develop, release-1.3
Commit:126f94016f41d6960370ecad44d22e76897f68ce
Parents: 6bbabaebdd058c413d671e15dd10f1c4b66ba023
Message:Do not accidentially delete the logo if we update the project conf.

Changes:

File differences

src/IDF/Form/ProjectConf.php
193193
194194
195195
196
197
198
199
200
201
202
203
204
205
196
197
198
199
200
201
202
203
206204
207205
208206
$this->project->update();
$conf = $this->project->getConf();
$keys = array('logo', 'external_project_url');
foreach ($keys as $key) {
if (array_key_exists($key, $this->cleaned_data)) {
if (!empty($this->cleaned_data[$key])) {
$conf->setVal($key, $this->cleaned_data[$key]);
}
else {
$conf->delVal($key);
}
}
if (!empty($this->cleaned_data['logo'])) {
$conf->setVal('logo', $this->cleaned_data['logo']);
}
if (!empty($this->cleaned_data['external_project_url'])) {
$conf->setVal('external_project_url', $this->cleaned_data['external_project_url']);
}
else {
$conf->delVal('external_project_url');
}
if ($this->cleaned_data['logo_remove'] === true) {

Archive Download the corresponding diff file

Page rendered in 0.07765s using 13 queries.