Skip to content

Multilanguage image description not saving with language specific edit permissions #1640

@gebeer

Description

@gebeer

Short description of the issue

When a user with language specific edit permission tries to save an image description, the text is not saved to the DB and after save the text field for that specific language is empty.

Expected behavior

The language specific text gets saved

Actual behavior

The language specific text does not get saved

Optional: Screenshots/Links that demonstrate the issue

With only page-edit-lang-pl permission values does not get saved.
only-pl-perm
Field hint says: Changes to this field will not be saved because you do not have permission for language: (Default)
edit-only-pl-perm
With page-edit-lang-pl and page-edit-lang-default permissions value for lang pl gets saved
pl-and-default-perm
Field hint is gone
edit-pl-and-default-perm

Optional: Suggestion for a possible fix

If I also enable page-edit-lang-default for the user role, they can save values to pl language. But it is not desired that they can also edit default language. So this is only a temp workaround, no solution.

Steps to reproduce the issue

  1. Create a role with permissions like illustrated in the screenshots above.
  2. Try to save a value to image description field of the specific language

Setup/Environment

  • ProcessWire version: 3.0.184
  • (Optional) PHP version: 7.4

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions