Bläddra i källkod

Merge pull request #12857 from nextcloud/fix/emit_write_update_once_on_touch

Emit write update only once on touch
tags/v16.0.0alpha1
Morris Jobke 5 år sedan
förälder
incheckning
ecc8068e66
Inget konto är kopplat till bidragsgivarens mejladress
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1
    1
      lib/private/Files/View.php

+ 1
- 1
lib/private/Files/View.php Visa fil

@@ -1157,7 +1157,7 @@ class View {
if ($result && in_array('delete', $hooks) and $result) {
$this->removeUpdate($storage, $internalPath);
}
if ($result && in_array('write', $hooks) and $operation !== 'fopen') {
if ($result && in_array('write', $hooks, true) && $operation !== 'fopen' && $operation !== 'touch') {
$this->writeUpdate($storage, $internalPath);
}
if ($result && in_array('touch', $hooks)) {

Laddar…
Avbryt
Spara