plone / Products.CMFPlone

The core of the Plone content management system
https://plone.org
GNU General Public License v2.0
245 stars 188 forks source link

Modal is used on an action after editing in controlpanel #3801

Closed mauritsvanrees closed 1 year ago

mauritsvanrees commented 1 year ago

Plone 6.0.5. Default behavior:

Now try this scenario:

This is probably happening since https://github.com/plone/plone.base/pull/27 was merged. This was released in plone.base 1.0.3, which already is used since Plone 6.0.2.

Solutions I see:

  1. Change the default value of modal to an empty string, instead of {}.
  2. Change whatever code is using this property, so an empty string does not trigger using a modal. But I guess this is the silent assumption (or maybe it is documented): if the modal setting contains at least something, even an empty dict, then this is the current way to signal to Plone that a modal should be used. If you just want a modal, and are happy with the default modal settings, then this makes sense.

I would say we go with solution 1. But if someone thinks solution 2 is better, I am happy to hear it.