Review main Merged

71608[BUGFIX] Restore "edit metadata" of translated files in FormEngine

Oli Bartsch CR +2 V +2 Easy +10 −8 updated 10/13/21, 12:00

Commit message

In case a files' metadata were translated in a L>0 language,
whenever the file is references in a record with this L>0
language, the inline controls show the "edit metadata"
button again.

This previously did not work, because the language field,
resolved by FormEngine, might not always be an array with
the language uid on [0]. Other FormEngine parts already
implement proper checks. So does the InlineRecordContainer
now.

Additionally, this also fixes an undefined array key access
warning and replaces the hardcoded "sys_language_uid"
field name, since this might be changed in TCA.

Review

  • Code review CR +2

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

  • Verified V +2

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

Issues 1

Files 1