Default Drupal system language code is 'en' but default node language is 'und' when language modules are enabled, so this mismatch leads to this module to stop working. This patch will identify if the node is in default 'und' status and then forced to use the site's default language.

CommentFileSizeAuthor
#2 2981317-02-patch.diff984 bytesheshanlk
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

heshanlk created an issue. See original summary.

heshanlk’s picture

Status: Active » Needs review
FileSize
984 bytes

  • Peter Majmesku committed 7ce2dc4 on 2981317-language-modules-disables authored by heshanlk
    Issue #2981317 by heshanlk: Module does not work when language modules...

Peter Majmesku’s picture

Status: Needs review » Fixed

Thanks for your contribution! I have removed also the remaining hardcoded language code definition in the KernelEventListener via using your suggested language manager from Drupal.

The fix is part of the latest version 8.x-1.54 release.

Peter Majmesku’s picture

Status: Fixed » Closed (fixed)
Peter Majmesku’s picture

Please feel free to re-open this issue, if you have any objections.