From 260f0fab4d76b75c707962337c6501af1d7d5f7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Thu, 28 Nov 2019 13:14:32 +0100 Subject: [PATCH] Set fileInfo in the rule matcher MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/workflowengine/lib/Entity/File.php | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/workflowengine/lib/Entity/File.php b/apps/workflowengine/lib/Entity/File.php index 4a01535ce0..9c44a383d6 100644 --- a/apps/workflowengine/lib/Entity/File.php +++ b/apps/workflowengine/lib/Entity/File.php @@ -113,6 +113,7 @@ class File implements IEntity, IDisplayText { try { $node = $this->getNode(); $ruleMatcher->setEntitySubject($this, $node); + $ruleMatcher->setFileInfo($node->getStorage(), $node->getPath()); } catch (NotFoundException $e) { // pass }