Problem/Motivation

I have a crash if I disable the 'Language' field:
Warning: Illegal string offset 'value' in Drupal\permissions_by_term\Service\AccessStorage->saveTermPermissions() (line 379 of modules/contrib/permissions_by_term/src/Service/AccessStorage.php).

Proposed resolution

Removing the default value 'en' at this line should solve the problem.

Comments

GPZ created an issue. See original summary.

gpz’s picture

  • Peter Majmesku committed dd27459 on 2977152-crash-when-language-disabled authored by GPZ
    Issue #2977152 by GPZ: Crash when 'Language' field is disabled
    

  • Peter Majmesku committed dd27459 on 8.x-1.x authored by GPZ
    Issue #2977152 by GPZ: Crash when 'Language' field is disabled
    
  • Peter Majmesku committed ef9f9a0 on 8.x-1.x
    Merged in 2977152-crash-when-language-disabled (pull request #4)
    
    Issue...
jepster_’s picture

jepster_’s picture

Status: Active » Fixed

Thanks for your contribution! The fix is part of the latest version 8.x-1.54 release.

There have been more fixes regarding language in the 8.x-1.54 release. Check this issue: Module does not work when language modules are disabled.

Please feel free to re-open this issue, if you have any objections. Do not forget the issue status update.

jepster_’s picture

Status: Fixed » Closed (fixed)