Commit 48e3f1bf authored by Jonas Götze's avatar Jonas Götze
Browse files

[WIP][BUGFIX] Prevent (better: hide) empty file reference in event.

Form submits without a file cause a sys_file-reference with an empty sys_file relation. Currently this can not be prevented. But the reference can be decoupled from the event.
@see: https://forge.typo3.org/issues/85216#note-16
parent b5a2c1ba
......@@ -68,6 +68,17 @@ finishers:
value: '{__currentTimestamp}'
uid_foreign:
value: '{T3oSaveToDatabase.insertedUids.0}'
-
table: 'sys_file_reference'
mode: update
whereClause:
uid_foreign: '{T3oSaveToDatabase.insertedUids.0}'
uid_local: 0
databaseColumnMappings:
pid:
value: 0
uid_foreign:
value: 0
-
table: sys_category_record_mm
mode: insert
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment