Skip to content

Commit

Permalink
Volumes didn't have soft-delete support until 3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Jan 16, 2019
1 parent 364bfa9 commit aa3c010
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/Volumes.php
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ private function _createVolumeQuery(): Query

// todo: remove schema version condition after next beakpoint
$schemaVersion = Craft::$app->getProjectConfig()->get('system.schemaVersion');
if (version_compare($schemaVersion, '3.1.0', '>=')) {
if (version_compare($schemaVersion, '3.1.19', '>=')) {
$query->where(['dateDeleted' => null]);
}

Expand Down

0 comments on commit aa3c010

Please sign in to comment.