Additional fix for #2629 with API

API object's notes fields now correctly preserve newlines.
This commit is contained in:
Geoffrey “Frogeye” Preud'homme
2019-09-22 17:36:18 +02:00
parent 5214f87003
commit f8cb5ca21c
10 changed files with 24 additions and 9 deletions

View File

@@ -242,7 +242,7 @@ class TransactionStoreRequest extends Request
// some other interesting properties
'reconciled' => $this->convertBoolean((string)$object['reconciled']),
'notes' => $this->stringFromValue($object['notes']),
'notes' => $this->nlStringFromValue($object['notes']),
'tags' => $this->arrayFromValue($object['tags']),
// all custom fields: