Page MenuHomePhorge

D5439.1775389037.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D5439.1775389037.diff

diff --git a/lib/ext/Syncroton/Command/FolderSync.php b/lib/ext/Syncroton/Command/FolderSync.php
--- a/lib/ext/Syncroton/Command/FolderSync.php
+++ b/lib/ext/Syncroton/Command/FolderSync.php
@@ -235,6 +235,14 @@
// have we created a folderObject in syncroton_folder before?
if (isset($clientFolders[$serverFolderId])) {
$add = $clientFolders[$serverFolderId];
+ // Update some properties in case they have changed.
+ // I ran into this while changing the parentId,
+ // but the test kept returning the same result (even though I requested a fresh sync with syncKey = 0).
+ // Not sure if there are other scenarios.
+ $serverFolder = $serverFolders[$serverFolderId];
+ $add->displayName = $serverFolder->displayName;
+ $add->parentId = $serverFolder->parentId;
+ $add->type = $serverFolder->type;
} else {
$add = $serverFolders[$serverFolderId];
$add->creationTime = $this->_syncTimeStamp;

File Metadata

Mime Type
text/plain
Expires
Sun, Apr 5, 11:37 AM (14 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18823813
Default Alt Text
D5439.1775389037.diff (1 KB)

Event Timeline