Merge pull request #3303 from owncloud/update_etags_on_restore
Make sure that etags get updated once a file gets retored from the trash bin
This commit is contained in:
commit
d980ee9d9f
|
@ -266,7 +266,10 @@ class Trashbin {
|
||||||
|
|
||||||
// handle the restore result
|
// handle the restore result
|
||||||
if( $restoreResult ) {
|
if( $restoreResult ) {
|
||||||
$view->touch($target.$ext, $mtime);
|
$fakeRoot = $view->getRoot();
|
||||||
|
$view->chroot('/'.$user.'/files');
|
||||||
|
$view->touch('/'.$location.'/'.$filename.$ext, $mtime);
|
||||||
|
$view->chroot($fakeRoot);
|
||||||
\OCP\Util::emitHook('\OCA\Files_Trashbin\Trashbin', 'post_restore',
|
\OCP\Util::emitHook('\OCA\Files_Trashbin\Trashbin', 'post_restore',
|
||||||
array('filePath' => \OC\Files\Filesystem::normalizePath('/'.$location.'/'.$filename.$ext),
|
array('filePath' => \OC\Files\Filesystem::normalizePath('/'.$location.'/'.$filename.$ext),
|
||||||
'trashPath' => \OC\Files\Filesystem::normalizePath($file)));
|
'trashPath' => \OC\Files\Filesystem::normalizePath($file)));
|
||||||
|
|
Loading…
Reference in New Issue