Sync: it's not yet possible to let single...

...objects fail

refs #1048
This commit is contained in:
Thomas Gelf 2018-05-22 12:17:22 +02:00
parent 49afcd5855
commit d8b1207254
1 changed files with 1 additions and 11 deletions

View File

@ -749,17 +749,7 @@ class Sync
if ($object->hasBeenModified()) { if ($object->hasBeenModified()) {
$existing = $object->hasBeenLoadedFromDb(); $existing = $object->hasBeenLoadedFromDb();
$object->store($db);
try {
$object->store($db);
} catch (Exception $e) {
if ($this->singleObjectsAreAllowedToFail()) {
$failed++;
continue;
} else {
throw $e;
}
}
if ($existing) { if ($existing) {
$modified++; $modified++;