<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 - Unable to alter or delete user fields containing spaces"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=121590">121590</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Unable to alter or delete user fields containing spaces
          </td>
        </tr>

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

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

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

        <tr>
          <th>OS</th>
          <td>Linux (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>UI
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>libreoffice@voicetechnology.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=146874" name="attach_146874" title="Document with code and button to reproduce the problem">attachment 146874</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=146874&action=edit" title="Document with code and button to reproduce the problem">[details]</a></span>
Document with code and button to reproduce the problem

If you create a user field in a macro where the name contains a space, the more
fields dialog will not let you edit or delete the field.


Code to reproduce the bug:


vDoc = ThisComponent
sName = "My Field"
If vDoc.getTextFieldMasters().hasByName("com.sun.star.text.FieldMaster.User." &
sName) Then
  vField =
vDoc.getTextFieldMasters().getByName("com.sun.star.text.FieldMaster.User." &
sName)
  vField.Content = "My Field Text"
Else
  vField = vDoc.createInstance("com.sun.star.text.FieldMaster.User")
  vField.Name = sName
  vField.Content = "My Field Text Update"
End If</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>