Import contribution note does not accept emtpy string
Overview
If in import contributions I map the field 'Note' and if there are rows with an empty value, I get this error:
"Mandatory values missing from Api4 Note::save: note"
Reproduction steps
- Click on Contributions -> Import contributions.
- Choose a CSV file. There must be a column for 'Notes'.
- In Match Fields (step 2 of 3) for the column "Notes" choose "Note"
Current behaviour
For rows with emtpy notes I have this error:
"Mandatory values missing from Api4 Note::save: note"
Expected behaviour
It must also accept empty notes.
Environment information
- CiviCRM: 5.57.3
- PHP: 8.1
- CMS: Drupal 9
- Database: MySQL 5.7.7