[SOLVED] Contenrules UI looks strange/bug (?) Plone 6 Classic

After adding a 'Notify' content rule, I noticed some strange behavior in Plone 6.0.10.1.

  1. Add a new content rule 'Notify'

  2. Edit the content rule. It looks like this (see screentshot). I did not expect all the control panel settings to show

  3. When trying to save, I get the following error:

      2024-03-21 11:21:30,317 ERROR   [Zope.SiteErrorLog:36][waitress-1] AttributeError: http://ubuntu.local:8605/Plone74/++rule++rule-1/++action++2/edit
    Traceback (innermost last):
    Module ZPublisher.WSGIPublisher, line 181, in transaction_pubevents
    Module ZPublisher.WSGIPublisher, line 391, in publish_module
    Module ZPublisher.WSGIPublisher, line 285, in publish
    Module ZPublisher.mapply, line 98, in mapply
    Module ZPublisher.WSGIPublisher, line 68, in call_object
    Module plone.z3cform.layout, line 61, in __call__
    Module plone.z3cform.layout, line 45, in update
    Module plone.z3cform.fieldsets.extensible, line 62, in update
    Module plone.z3cform.patch, line 31, in GroupForm_update
    Module z3c.form.group, line 145, in update
    Module plone.app.z3cform.csrf, line 21, in execute
    Module z3c.form.action, line 98, in execute
    Module z3c.form.button, line 301, in __call__
    Module z3c.form.button, line 159, in __call__
    Module plone.app.contentrules.browser.formhelper, line 67, in handle_save_action
    Module plone.app.contentrules.browser.formhelper, line 58, in add
    AttributeError: 'RequestContainer' object has no attribute 'add'
    

I am not sure if they are related. Does anyone know when this worked 'last time' (Plone version) ?

I just tried this at https://classic.demo.plone.org/ and it seems to work. May you try exact the same you did locally there and report back if it is a problem and where?

It does not work when you try to 'edit the notify message' (it is blank), and as on my site: demo. plone also 'includes the site setup link and the 'control panel tabs'. This is 'confusing UI'

Update: youtube (will remove this later) https://youtu.be/1U8Sx25eFhY

Well, please file a bug.

Done (thought I had, though)

PS: I have tried to compare that rule to others, and I can not figure out why this happens. It looks like it happens to all 'Text' and 'TextLine' fields

Fixes for plone.app.contentrules are merged in the master, only a new release is needed.

Do you know which commit (so I can test that it also works with 'my new Notify rule'

use the latest master plone.app.contentrules/plone/app/contentrules at master · plone/plone.app.contentrules · GitHub

That are the relevant pieces of the fix

Thanks a lot (should have asked you before spending hours on trying to find out why :slight_smile: )