Bug 119942 - email in mailmerge contains wrong body: data sent is off by one
Summary: email in mailmerge contains wrong body: data sent is off by one
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) release
Hardware: All All
: medium normal
Assignee: Not Assigned
Depends on:
Blocks: Mail-Merge
  Show dependency treegraph
Reported: 2018-09-17 22:57 UTC by brief
Modified: 2019-10-16 02:29 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:

sample ods file (17.98 KB, application/vnd.oasis.opendocument.spreadsheet)
2018-09-17 22:58 UTC, brief
sample odt file (10.37 KB, application/vnd.oasis.opendocument.text)
2018-09-17 22:58 UTC, brief

Note You need to log in before you can comment on or make changes to this bug.
Description brief 2018-09-17 22:57:44 UTC
On sending a mailmerge with a datasource of a calc ods file, the data in the mail body does not match the recipients data.

E.g. a mail is sent for mail8@host (data from line 8, column email) with data from line 7.

Steps to Reproduce:
0. Edit the ods file to contain email addresses.
1. Open the odt file.
2. Attach the ods file using the mail merge assistant.
3. Delete the fields and re-add them using the correct data source.
4. Send emails.

Actual Results:
Hi 7,
1  7,00 €
2 14,00 €

Expected Results:
Hi 8,
1  8,00 €
2 16,00 €

Reproducible: Always

User Profile Reset: Yes

OpenGL enabled: Yes

Additional Info:
Version: (x64)
Build-ID: 0c292870b25a325b5ed35f6b45599d2ea4458e77
CPU-Threads: 4; BS: Windows 6.3; UI-Render: Standard; 
Gebietsschema: de-DE (de_DE); Calc: group
Comment 1 brief 2018-09-17 22:58:36 UTC
Created attachment 144965 [details]
sample ods file
Comment 2 brief 2018-09-17 22:58:52 UTC
Created attachment 144966 [details]
sample odt file
Comment 3 brief 2018-09-17 23:02:00 UTC
same behaviour if openGL is disabled
Comment 4 brief 2018-09-17 23:15:39 UTC
After removing the surrounding table, the correct data is used.
Comment 5 Buovjaga 2018-10-13 11:25:40 UTC

You missed instructions: to match the fields to data source entries, double-click them (Vorname, asd, asd2) and pick the columns with the matching names.

Arch Linux 64-bit
Build ID: 6.1.1-1
CPU threads: 8; OS: Linux 4.18; UI render: default; VCL: gtk3_kde5; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group threaded
Comment 6 QA Administrators 2019-10-16 02:29:46 UTC
Dear brief,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)

If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from http://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword

Feel free to come ask questions or to say hello in our QA chat: https://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team