From a7292e897a70a2f7e79f61396d4888cb694f0860 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Schie=C3=9Fle?= <schiessle@owncloud.com>
Date: Wed, 26 Sep 2012 17:03:54 +0200
Subject: [PATCH] The mtime in the file cache has to be updated after version
 rollback (copy from outside of the regular files root) (fixes bug #1720)

---
 lib/filesystemview.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/filesystemview.php b/lib/filesystemview.php
index fcf419e864d..02a0b521053 100644
--- a/lib/filesystemview.php
+++ b/lib/filesystemview.php
@@ -451,6 +451,8 @@ class OC_FilesystemView {
 						OC_Filesystem::signal_post_write,
 						array( OC_Filesystem::signal_param_path => $path2)
 					);
+				} else { // no real copy, file comes from somewhere else, e.g. version rollback -> just update the file cache without all the other post_write actions
+					OC_FileCache_Update::update($path2, $this->fakeRoot);
 				}
 				return $result;
 			}
-- 
GitLab