Skip to content

Commit

Permalink
Fixed #3832
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Feb 13, 2019
1 parent e1b67f2 commit 8070026
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG-v3.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Fixed
- Fixed a bug where the `users/save-user` action wasn’t deleting user photos properly.
- Fixed a bug where changes to Matrix block type fields’ settings weren’t always saving. ([#3832](https://github.com/craftcms/cms/issues/3832))

## 3.1.9.1 - 2019-02-12

Expand Down
7 changes: 1 addition & 6 deletions src/services/ProjectConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -326,12 +326,7 @@ public function get(string $path = null, $getFromYaml = false)
*/
public function set(string $path, $value)
{
// Make sure it's actually changing
if ($value === $this->get($path)) {
return;
}

if ($this->readOnly) {
if ($this->readOnly && $value !== $this->get($path)) {
throw new NotSupportedException('Changes to the project config are not possible while in read-only mode.');
}

Expand Down

0 comments on commit 8070026

Please sign in to comment.