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

            Bug ID: 151645
           Summary: Hidden sections are present in the output document
                    when they merged with option as individual documents
           Product: LibreOffice
           Version: 7.3.6.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Description:
If a document with hidden sections are merged as a single document the hidden
sections are stripped form the document. This is the expected result. But if
the document is merged as individual documents the hidden sections are present
in the document. This is a bug.


Steps to Reproduce:
1. Create a document with this content (automatically numbered list)
  1. first element
  2. second element
  3. third element
2. Insert 3 sections
  -- 1st section
  1. first element
  -- 2nd section
  2. second element
  -- 3rd section
  3. third element
3. Create a mail merge database with some fields: Id, name and some boolean
fields. For example:
  ID    Name    Item1   Item2   Istem3
  1     John    true    false   false
  2     Peter   false   true    true
  3     Paul    false   false   true
4. Add "hidden" condition to the all sections: Format > Sections > Hidden: 
  !HiddenDatabase.Sheet.Item1
  !HiddenDatabase.Sheet.Item2
  !HiddenDatabase.Sheet.Item3
5. Choose File > Print and respond with Yes in the message box. Create a merged
file as a single document.
6. Choose File > Print and respond with Yes in the message box. Create merged
files as individual documents.

Actual Results:
The file created with as a single document options: OK
The files created with option as individual documents: is fails. For example.
The output is:

    Peter
    2. second element
    3. third element

Expected Results:
The expected result is:

    Peter
    1. second element
    2. third element


Reproducible: Always


User Profile Reset: No



Additional Info:
Why is the ouput for single document good?
- Open the document.
- See Format > Sections: There are no hidden sections. Only the visible
sections are in the document structure. The sections are named in this way:
MailMergeSection[datetime][original section name]

Why are ouputs for individual documents wrong?
- Open a document.
- See Format > Sections: All sections are present in the document structure and
there are hidden sections!

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

Reply via email to