Sync: fix purge for objects with uppercase chars

fixes #2627
This commit is contained in:
Thomas Gelf 2022-11-02 21:12:40 +01:00
parent 01a80c2da8
commit 693b8fe317
2 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,7 @@ v1.10.2 (unreleased)
### Import and Sync
* FIX: triggering Sync manually produced an error on PostgreSQL (#2636)
* FIX: purge stopped working for objects with uppercase characters (#2627)
### Configuration Baskets
* FEATURE: more details shown in error messages related to invalid characters (#2646)

View File

@ -690,6 +690,7 @@ class Sync
$noAction = [];
$purgeAction = $this->rule->get('purge_action');
foreach ($this->rule->purgeStrategy()->listObjectsToPurge() as $key) {
$key = strtolower($key);
if (array_key_exists($key, $newObjects)) {
// Object has been touched, do not delete
continue;