Account search fixed.

This commit is contained in:
James Cole
2020-08-28 11:24:55 +02:00
parent 63794cab07
commit 093f34b7a8
26 changed files with 157 additions and 996 deletions

View File

@@ -41,31 +41,6 @@ class ClearCategory implements ActionInterface
{
}
/**
* Clear all categories
*
* @param TransactionJournal $journal
* @codeCoverageIgnore
* @deprecated
*
* @return bool
*/
public function act(TransactionJournal $journal): bool
{
$journal->categories()->detach();
$journal->touch();
// also remove categories from transactions:
/** @var Transaction $transaction */
foreach ($journal->transactions as $transaction) {
$transaction->categories()->detach();
}
Log::debug(sprintf('RuleAction ClearCategory removed all categories from journal %d.', $journal->id));
return true;
}
/**
* @inheritDoc
*/