mirror of
https://github.com/getformwork/formwork.git
synced 2025-02-25 02:02:57 +01:00
Use site defaults when updating options
This commit is contained in:
parent
65bb8973e5
commit
f7d921a68d
@ -74,7 +74,8 @@ class Options extends AbstractController
|
||||
if (HTTPRequest::method() === 'POST') {
|
||||
$data = new DataGetter(HTTPRequest::postData());
|
||||
$options = $this->site()->data();
|
||||
$differ = $this->updateOptions('site', $fields->validate($data), $options, array());
|
||||
$defaults = Formwork::instance()->site()->defaults();
|
||||
$differ = $this->updateOptions('site', $fields->validate($data), $options, $defaults);
|
||||
|
||||
// Touch content folder to invalidate cache
|
||||
if ($differ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user