<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - mail merge: conditional text followed by empty field not printed"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=123073">123073</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>mail merge: conditional text followed by empty field not printed
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.1.4.2 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Writer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>tmplee@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=148779" name="attach_148779" title="small test database (four records, four fields each record)">attachment 148779</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=148779&action=edit" title="small test database (four records, four fields each record)">[details]</a></span>
small test database (four records, four fields each record)

Conditional text that should be printed (included) based on a database field
followed by a database field that happens to by empty is not included.  Problem
does not occur in 6.0 (which has a different problem that appears to have been
reported) but occurs in 6.1.4.2 and all versions thereafter (including 6.3.0.0
alpha).  I do not know which version between 6.0 and 6.1.4.2 the problem arises
in — haven't checked.  Attached are three documents:  a very small database, a
label template, and the result of merging the db into the template. In short,
the output should look something like

C1                     C2
field                  B



C3                      C4
                        field B


but what it produces (in the versions with the bug) is

C1                     C2
                       B



C3                      C4
                        field B

"field" is conditional text base on whether a particular db field is empty or
not;
following ir is the field "B" which is "B" in some records and empty in others.

(1st attachment including with initial bug report; remaining two in later
comments)</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>