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

            Bug ID: 173472
           Summary: Mail merge: add an option to disable automatic removal
                    of paragraphs containing an empty merge field
           Product: LibreOffice
           Version: 24.2.7.2 release
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Description:
When performing a mail merge (Save Merged Documents), any paragraph containing
a
database/merge field whose value is empty for the current record is entirely
removed
from the output document — even when that paragraph also contains static text
(e.g. "Phone: <Tel>" disappears completely if the Tel field is empty, even
though the
static text "Phone: " should normally be able to display on its own).

Steps to Reproduce:
1. Create a Writer document linked to a data source (Calc, Base, etc.)1
2. Insert a line such as: Phone: <Tel> (field dragged from the Data Sources
window)
3. Make sure at least one record has an empty Tel field
4. Run the mail merge, then "Save Merged Documents"


Actual Results:
The whole line ("Phone: " + field) disappears from the generated document for
records where Tel is empty.

Expected Results:
The static text in the paragraph (here "Phone: ") should still be displayed;
only the
field's own content should be empty.


Reproducible: Always


User Profile Reset: No

Additional Info:
Add an option (in Tools > Options > LibreOffice Writer, or in the Mail Merge
Wizard /
Mail Merge toolbar) to disable this automatic paragraph-removal behavior

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to