Steps to reproduce:
Expected behavior:
All mapped URLs are stored in the field: Row A → a, b, c; Row B → a, b; Row C → a. Phone numbers and email addresses already work this way, through separate import mappings (Email 2–4, one Phone per type). Alternatively, the UI should not allow mapping the same field to more than one column, or it should show a warning.
Actual behavior:
Only the value of the last non-empty mapped column is stored: Row A → c, Row B → b, Row C → a. The other URLs are discarded silently. The import reports success, with no import errors.
Notes:
EspoCRM version: 10.1.5
PHP version: 8.3.6
Database: MariaDB 10.11.14
- Administration → Entity Manager → Account → Fields → Add Field → type URL (Multiple), name websites.
- Create a CSV file (delimiter ,, text qualifier "):
Name,Website 1,Website 2,Website 3
Row A,https://a.example.com,https://b.exam.../c.example.com
Row B,https://a.example.com,https://b.example.com,
Row C,https://a.example.com,, - Go to Import, select entity type Account, upload the file, keep the default settings, click Next.
- In Field Mapping, map "Name" → Name, and map "Website 1", "Website 2" and "Website 3" each → Websites. The UI allows this.
- Click Run Import.
- Open the imported accounts.
Expected behavior:
All mapped URLs are stored in the field: Row A → a, b, c; Row B → a, b; Row C → a. Phone numbers and email addresses already work this way, through separate import mappings (Email 2–4, one Phone per type). Alternatively, the UI should not allow mapping the same field to more than one column, or it should show a warning.
Actual behavior:
Only the value of the last non-empty mapped column is stored: Row A → c, Row B → b, Row C → a. The other URLs are discarded silently. The import reports success, with no import errors.
Notes:
- Request sent by the UI: "attributeList":["name","cWebsites","cWebsites","cWebsites"].
- In application/Espo/Tools/Import/Import.php, each column calls $entity->set($attribute, ...), so each mapped column overwrites the previous value. Only email and phone have dedicated multi-column handling (processFieldEmailMulti, processFieldPhoneMulti).
- Importing several URLs in a single column works ("https://a.example.com,https://b.example.com").
- No errors in data/logs or in the browser console.
EspoCRM version: 10.1.5
PHP version: 8.3.6
Database: MariaDB 10.11.14

Comment