<p dir="ltr">Hi,</p>
<p dir="ltr">Currently the filemodule uses 2 methods to check if a file is referenced somewhere.</p>
<p dir="ltr">For the reference count in the file listing it queries sys_ref.<br>
For the reference check when deleting a file first sys_ref is checked and when references are found sys_file_reference is queried and only these results are shown to the user. So when sys_ref is out of sync you get strange behaviour.</p>

<p dir="ltr">My proposal is to cleanup the filemodule and only use sys_file_reference for the reference checks.</p>
<p dir="ltr">What&#39;s your opinion about this?</p>
<p dir="ltr">Gr. Frans </p>