Skip to content

Plone 5 & Plone 6 - Adding key/value to dict in portal_registry fails #4215

@fabiSwDevBeg

Description

@fabiSwDevBeg

Problem

When editing a registry entry of type dict in the Control Panel (portal_registry), attempting to add a new key/value pair closes the edit modal but the new pair is not saved. This happens both on Plone 5 and Plone 6.

Steps to reproduce

  1. Open the Plone site Control Panel.
  2. Open the Configuration Registry (portal_registry) control panel.
  3. Select an entry whose value is a dict (for example your.package.interfaces.IMySettings.some_dict).
  4. Open the edit modal, click Add.

Expected behavior
A new entry for the Dict should appear in the modal and i should be able to edit it.

Actual behavior
The modal closes immediately after saving, but the new entry is not added — the dict remains unchanged.

Environment

  • Plone version: 5.x and 6.x (both affected) (4.x not tested)
  • Python version: 3.8 / 3.10

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