<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 - MAILMERGE: linked sections with hiding conditions get shown unconditionally"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=122156">122156</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>MAILMERGE: linked sections with hiding conditions get shown unconditionally
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </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>mikekaganski@hotmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=147622" name="attach_147622" title="A sample set to test linked sections with conditions in mail merge">attachment 147622</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=147622&action=edit" title="A sample set to test linked sections with conditions in mail merge">[details]</a></span>
A sample set to test linked sections with conditions in mail merge

In the attachment, there are 3 files:

1. linked-with-condition.odt
2. source-for-link.odt
3. 5-with-blanks.ods

#1 is the mail merge template. Open it, and assign #3 as data source using Mail
Merge wizard. In #1, there's a section linked to #2; and the section has a
condition to hide, which is when data source's Title field is empty. If you
navigate the records in the template, the section is shown and hidden as
appropriate.

The problem is, when performing a mail merge, e.g. using Saved Merged
Documents, the resulting document has the section always shown, regardless of
Title field contents.

Tested with Version: 6.1.4.2 (x64)
Build ID: 9d0f32d1f0b509096fd65e0d4bec26ddd1938fd3
CPU threads: 12; OS: Windows 10.0; UI render: GL; 
Locale: ru-RU (ru_RU); Calc: CL, but must be reproducible as far as in version
4.4.</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>