<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 - enhancement: if text is already in a section, ask for confirmation before linking a file in the section"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=128843">128843</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>enhancement: if text is already in a section, ask for confirmation before linking a file in the section
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>6.4.0.0.alpha1+
          </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>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>LibreOffice
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>sdc.blanco@youmail.dk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Problem:  Linking a file into a section replaces text that was previously in
the section.

Not possible to "undo" (e.g. Ctrl-Z).  

Therefore enhancement proposal for a confirmation warning.

Procedure to see problem:

1.  Insert > Section
2.  Enter text in section
3.  Right click - Edit Section
4.  Choose Link, enter filename, and OK
5.  Text entered in step 2 is lost with loading of linked text.

Additional information
1. Not possible to "Undo"
2. The unsuspecting user who then unlinks the file (hoping to recover the lost
text) will see that only the file remains, not the original text.
3. This happens even if the section was marked previously as write-protected
(i.e., false protection).

Suggestion:  

Version 1:  Before linking an external file, pop-up a confirmation box that
warns that all contents of the section will be lost(or replaced).

Version 2:  If it is easy/possible to evaluate whether the section is empty,
then only pop-up confirmation when there is actually something to be lost.</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>