Part of bugfix for storage move problem
authorutzer <rene+github@schmitz.pro>
Fri, 12 Mar 2021 08:55:55 +0000 (09:55 +0100)
committerGitHub <noreply@github.com>
Fri, 12 Mar 2021 08:55:55 +0000 (09:55 +0100)
@fabrixxm is this already good to change?

src/Core/StorageManager.php

index c838578..b832b20 100644 (file)
@@ -311,7 +311,7 @@ class StorageManager
 
                                if ($destinationRef !== '') {
                                        $this->logger->info('update row');
-                                       if ($this->dba->update($table, ['backend-class' => $destination, 'backend-ref' => $destinationRef, 'data' => ''], ['id' => $id])) {
+                                       if ($this->dba->update($table, ['backend-class' => $destination::getName(), 'backend-ref' => $destinationRef, 'data' => ''], ['id' => $id])) {
                                                if (!empty($source)) {
                                                        $this->logger->info('Delete data from old backend.', ['oldBackend' => $source, 'oldReference' => $sourceRef]);
                                                        $source->delete($sourceRef);