Skip to content

Commit

Permalink
Fixed #3713
Browse files Browse the repository at this point in the history
  • Loading branch information
andris-sevcenko committed Jan 25, 2019
1 parent 0546165 commit 0aaf1ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG-v3.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Fixed
- Fixed a bug where renaming an asset file was impossible using the element action. ([#3707](https://github.com/craftcms/cms/issues/3707))
- Fixed a bug where saving user details would result in a PHP error.
- Fixed a bug where it was impossible to apply project config changes. ([#3713](https://github.com/craftcms/cms/issues/3713))

## 3.1.4 - 2019-01-24

Expand Down
4 changes: 2 additions & 2 deletions src/services/ProjectConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ public function getAreConfigSchemaVersionsCompatible(): bool
$existingSchema = (string)Craft::$app->schemaVersion;

// Compare existing Craft schema version with the one that is being applied.
if (version_compare($existingSchema, $incomingSchema, '=')) {
if (!version_compare($existingSchema, $incomingSchema, '=')) {
return false;
}

Expand All @@ -677,7 +677,7 @@ public function getAreConfigSchemaVersionsCompatible(): bool
$existingSchema = (string)$plugin->schemaVersion;

// Compare existing plugin schema version with the one that is being applied.
if (version_compare($existingSchema, $incomingSchema, '=')) {
if ($incomingSchema && !version_compare($existingSchema, $incomingSchema, '=')) {
return false;
}
}
Expand Down

0 comments on commit 0aaf1ed

Please sign in to comment.