diff --git a/CHANGELOG.md b/CHANGELOG.md index 7223e8d..272ec17 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ CHANGELOG ===================== +v1.0.1 +--------------------- +* Bug fix: Settings Form saves without validation + v1.0 --------------------- * Component, DbComponent, Interface diff --git a/src/forms/SettingsForm.php b/src/forms/SettingsForm.php index 2a8272f..6d1d6e1 100644 --- a/src/forms/SettingsForm.php +++ b/src/forms/SettingsForm.php @@ -53,6 +53,10 @@ public function loadData() */ public function save() { + if (! $this->validate()) { + return false; + } + $save = true; foreach ($this->getAttributes() as $key => $value) { $save &= Instance::of(SettingsInterface::class)->get()->set($this->sectionName(), $key, $value);