fix: [adminSetting] Avoid trying to create new entries if previous save failed

pull/5526/head
mokaddem 2020-01-20 13:26:25 +01:00
parent 9d9ee3dbe7
commit 67971f532b
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 0 additions and 2 deletions

View File

@ -27,8 +27,6 @@ class AdminSetting extends AppModel
if ($this->save($setting_object)) {
return true;
} else {
$this->create();
$this->save($setting_object);
return $this->validationErrors;
}
}