Review main Abandoned

55486[BUGFIX] Prevent deletion of files referenced in any table

Armin Vieweg CR 0 V 0 Easy +3 −0 updated 02/12/18, 16:42

Commit message

Each time a file gets deleted in filelist, a check looks for
active references (usages) and avoid file deletion.

Before this patch, this check did only apply when FAL references
(TCA type "inline") has been configured. TCA type "group" with
appearance->elementBrowserType option set to "file" were ignored.

Now all references from ref_index are respected, not only those
which reference to "sys_file_reference" table.

The ref_index contains direct connection to referenced record
(e.g. content element), shortcutRecord and brokenReference check
does not apply here.

Review

  • Code review CR 0

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V 0

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 1