mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Add migration routine for https://github.com/firefly-iii/firefly-iii/pull/8650
This commit is contained in:
@@ -53,6 +53,9 @@ class SetDescription implements ActionInterface
|
||||
$before = $object->description;
|
||||
$after = $this->action->getValue($journal);
|
||||
|
||||
// replace newlines.
|
||||
$after = str_replace(["\r", "\n", "\t", "\036", "\025"], '', $after);
|
||||
|
||||
\DB::table('transaction_journals')
|
||||
->where('id', '=', $journal['transaction_journal_id'])
|
||||
->update(['description' => $after])
|
||||
|
Reference in New Issue
Block a user