[Libreoffice-bugs] [Bug 119942] email in mailmerge contains wrong body: data sent is off by one

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Oct 10 11:54:50 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=119942

Kevin Suo <suokunlong at 126.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |suokunlong at 126.com

--- Comment #7 from Kevin Suo <suokunlong at 126.com> ---
Created attachment 166250
  --> https://bugs.documentfoundation.org/attachment.cgi?id=166250&action=edit
Another minimal odt file

This bug exists for a long time, and still exists on the current master build.

The problem is, when the mail merge file (i.e., the odt file) contains a table,
then the merged result would have the 1st record in the 1st result, but the 2nd
result still contains the 1st record, the 3rd result contains the 2nd record,
and so on, and finally the last record would contain both the last-1 and the
last record in the same document.

The problem does not happen if the odt file does not contain a table.

Attached is a minimal odt file.

Steps to Reproduce:

1. Open the "Another minimal odt file", double-click on any of the two fields,
then browse "Add database file", choose the "Another minimal ods file" attached
to the next comment.

2. Update the two fields to use the datasource you have added in step 1. Save
and reopen the odt file.
(LibreOffice 6.4.6.2 may crash at this step, but this may be a different issue
and I will report in a separate report)

3. Enable Mail Merge toolbar (View -> Toolbars -> Mail Merge), click once the
"Next Mail Merge Entry" (i.e., -> button in the Mail Merge toolbar). Then click
"Save Merged Documents -> Save as Individual documents" on the same toolbar.
Choose a location and save.

4. Open the merged individual odt files.
--> The 1st result correctly contains the 1st record ("Kevin Suo"). The 2nd
result wrongly still contains the 1st record ("Kevin Suo"). The 3rd result
wrongly contains both the 2nd record ("Xiujuan Liu") and the 3rd record ("Aixi
Suo") in the same file on two different pages.

The expected result is, 1st record in the 1st result, 2nd record in the 2nd
result, and 3rd record in the 3rd result.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20201010/1d42b503/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list