Review main Merged

69066[BUGFIX] Only return translation count message for a non-zero count

Andreas Kienast CR +2 V +2 Easy +4 −8 updated 05/11/21, 19:17

Commit message

With #93979, `BackendUtility::translationCount()` was changed and always
returned the message "This record has X translation(s) [...]!" even if
there are no translated records at all.

This patch initializes `$count` as 0 and changes the message handling as
similar as in `BackendUtility::referenceCount()`.

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 2

Files 1