This commit is contained in:
James Cole
2024-03-16 07:03:50 +01:00
parent 55f14c587b
commit b3649cd4d0
5 changed files with 197 additions and 2 deletions

View File

@@ -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])