Skip to content

Commit fc94fa5

Browse files
R0Wibackportbot[bot]
authored andcommitted
Set target node on rename action
1 parent 10a3457 commit fc94fa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Operation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public function onEvent(string $eventName, Event $event, IRuleMatcher $ruleMatch
182182
$extra = [];
183183
if ($eventName === '\OCP\Files::postRename') {
184184
/** @var Node $oldNode */
185-
list($oldNode,) = $event->getSubject();
185+
list($oldNode, $node) = $event->getSubject();
186186
$extra = ['oldFilePath' => $oldNode->getPath()];
187187
} else if ($event instanceof MapperEvent) {
188188
if ($event->getObjectType() !== 'files') {

0 commit comments

Comments
 (0)