From 018941c5b347c9a78dc6abe2f1da0698a61e2a9c Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 12 Aug 2017 19:05:29 +0200 Subject: [PATCH] Actually use journal [skip ci] --- app/Import/Storage/ImportStorage.php | 2 -- app/Import/Storage/ImportSupport.php | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/Import/Storage/ImportStorage.php b/app/Import/Storage/ImportStorage.php index 2f98ae6f46..ee2aceb74f 100644 --- a/app/Import/Storage/ImportStorage.php +++ b/app/Import/Storage/ImportStorage.php @@ -43,8 +43,6 @@ class ImportStorage private $objects; /** @var Collection */ private $rules; - /** @var TagRepositoryInterface */ - private $tagRepository; /** @var array */ private $transfers = []; diff --git a/app/Import/Storage/ImportSupport.php b/app/Import/Storage/ImportSupport.php index 44ce15c4d9..7af7e94203 100644 --- a/app/Import/Storage/ImportSupport.php +++ b/app/Import/Storage/ImportSupport.php @@ -47,7 +47,7 @@ trait ImportSupport { if ($this->rules->count() > 0) { $this->rules->each( - function (Rule $rule) { + function (Rule $rule) use($journal) { Log::debug(sprintf('Going to apply rule #%d to journal %d.', $rule->id, $journal->id)); $processor = Processor::make($rule); $processor->handleTransactionJournal($journal);