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

            Bug ID: 163674
           Summary: In a writer form letter with fields from a database
                    (field type database) based on a calc-sheet, the
                    paragraph containing the field is alway handled as
                    "hidden paragraph", if there is no entry in the
                    datebase. Switching threw entrys causes misbehavor
           Product: LibreOffice
           Version: 24.2.6.2 release
          Hardware: All
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Description:
I have got a writer-file, which i want to use as a form letter. I added a
database via "Edit"-"Exchange Database". The database is a base-file which is
based on a calc-file. Then i added a field ("insert"-"field"-"more
fields"-"database", type "Mail merge fields". The form letter works fine, if
the field in the calc file is filled. I can switch through the entries in the
toolbar "mail merge", and the view of the field changes correctly. But:

If I switch to an entry, were the calc-cell the field is based on is empty, the
whole paragraph disappears. It is handled as a "hidden paragraph". And: if I
switch to the next entry were the cell in calc is filled again - the paragraph
does not reappear. You then have to choose view in the menu and have to
activate "field hidden paragraphs".



Steps to Reproduce:
1. register a database based on a calcfile
2. create a new writer-document. make an paragaph. insert a databasefield
3. switch to an empty entry. then switch to a filled one (with deactivated view
of hidden paragraphs)

Actual Results:
The paragraph disappears completly, if the databasefield is empty. (that may
cause unintended errors printing documents). But much more bad: If switching to
the next entry which is filled, the paragraph doesnt reappear.

Expected Results:
1.) Possible choice, if the paragraph should be handled as hidden, if the entry
is empty.
2.) At switching to the next entry in the form letter, where the entry IS NOT
EMPTY, the paragraph should appear again - without activating "view- field
hidden paragraphs".


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 24.2.6.2 (X86_64) / LibreOffice Community
Build ID: ef66aa7e36a1bb8e65bfbc63aba53045a14d0871
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: default; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: threaded

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

Reply via email to