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

            Bug ID: 153053
           Summary: Hiding sections in mail merge with mutiple fields
                    depends defining conditions for database fileds.
           Product: LibreOffice
           Version: 3.3.0 release
          Hardware: IA64 (Itanium)
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: nalong...@sbcglobal.net

Description:
In Libre Office help for defining conditions for database fileds, NOT
Database.Table.Company & Database.Table.Company EQ "" are considered
equivalent. That is true for single fileds but I have found that for 2 or more
fields, that is not true.

Steps to Reproduce:
1.Insert a section in a writer for mail merge.
2.Insert more than one mail merge field in the section
3.Edit the section to hide it if any of the fileds are missing
4.Enter [Database.Table.Field1]EQ "" OR [Database.Table.Field2] EQ ""

Actual Results:
If Database.Table.Field1 OR Database.Table.Field2 is missing, the section is
not not hidden.

Expected Results:
If Database.Table.Field1 OR Database.Table.Field2 is missing, the section
should be hidden.


Reproducible: Always


User Profile Reset: No

Additional Info:
I have found that if I change the code to:
NOT[Database.Table.Field1] OR NOT [Database.Table.Field2]

and either filed is missing, the section is hidden as expected. Although EQ ""
works for single fields, in this case, it does not work.

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

Reply via email to