mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-18 07:38:29 +00:00
Account search fixed.
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user