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

@@ -42,28 +42,6 @@ class ClearNotes implements ActionInterface
{
}
/**
* Remove notes
*
* @param TransactionJournal $journal
* @codeCoverageIgnore
* @deprecated
* @return bool
* @throws Exception
*/
public function act(TransactionJournal $journal): bool
{
Log::debug(sprintf('RuleAction ClearNotes removed all notes.'));
$notes = $journal->notes()->get();
/** @var Note $note */
foreach ($notes as $note) {
$note->delete();
}
$journal->touch();
return true;
}
/**
* @inheritDoc
*/