<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 - Auto text does not properly insert field variables"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=115904">115904</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Auto text does not properly insert field variables
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows (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>sven.neuz@serpenteq.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=140035" name="attach_140035" title="Exampe for Auto text does not properly insert field variables">attachment 140035</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=140035&action=edit" title="Exampe for Auto text does not properly insert field variables">[details]</a></span>
Exampe for Auto text does not properly insert field variables

If I use AutoText to insert a text with a "Show variable" statement in it, the
content of variable is not shown correctly. Instead of the Text "SQ-XXX" a "0"
is shown. If I click on the field it correctly shows "Show variable" with the
correct name

Steps: 
- Set a text variable to some string.
- Write some text with show variable in it.
- Put that text into AutoText
- Insert the AutoText again.

I've attached a document showing the issue.
First the variable is defined, then two times used manually and then one time
inserted from AutoText. The Incremental counter after the variable works just
fine but the text variable is not.</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>