<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 - DOCX formtext content is lost after filling"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=132091">132091</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>DOCX formtext content is lost after filling
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>6.4.0.0.alpha0+
          </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>vasily.melenchuk@cib.de
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
A document containing filling form (FORMTEXT) in some cases can lose content
after filling.

Steps to Reproduce:
1. Open attached document (test.docx)
2. Double click form value (text "ASDF") to select it all. Important step, if
previous content is removed in a different way bug can not appear.
3. Enter new text value. Previous will be removed/owerwritten.
4. Save and reopen document.

Actual Results:
FORMTEXT value is not displayed.

Expected Results:
User should see same text he enters on step 3.


Reproducible: Always


User Profile Reset: No



Additional Info:
As far as I found during look into document structure, result is actually
written into resulting DOCX, but for unknown to me reasons it is written
*before* field separator.

So instead 
- fldChar begin
- FORMTEXT
- fldChar separate
- ASDF
- fldChar end

we have in this scenario:
- fldChar begin
- FORMTEXT
- ASDF
- fldChar separate
- fldChar end</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>