Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using RichLabelWidget breaks the form #369

Open
MrTango opened this issue Aug 31, 2022 · 1 comment
Open

Using RichLabelWidget breaks the form #369

MrTango opened this issue Aug 31, 2022 · 1 comment
Labels

Comments

@MrTango
Copy link
Contributor

MrTango commented Aug 31, 2022

Tested in version 3.x, when adding a rich label field, the form breaks when trying to send it.

2022-08-31 15:17:11,372 ERROR   [Zope.SiteErrorLog:252][waitress-0] 1661948231.370.878492251198 http://localhost:8080/Plone/form/view
Traceback (innermost last):
  Module ZPublisher.WSGIPublisher, line 162, in transaction_pubevents
  Module ZPublisher.WSGIPublisher, line 371, in publish_module
  Module ZPublisher.WSGIPublisher, line 274, in publish
  Module ZPublisher.mapply, line 85, in mapply
  Module ZPublisher.WSGIPublisher, line 63, in call_object
  Module plone.z3cform.layout, line 63, in __call__
  Module plone.z3cform.layout, line 47, in update
  Module collective.easyform.browser.view, line 330, in update
  Module plone.z3cform.fieldsets.extensible, line 65, in update
  Module plone.z3cform.patch, line 30, in GroupForm_update
  Module z3c.form.group, line 145, in update
  Module plone.app.z3cform.csrf, line 22, in execute
  Module z3c.form.action, line 98, in execute
  Module z3c.form.button, line 315, in __call__
  Module z3c.form.button, line 170, in __call__
  Module collective.easyform.browser.view, line 195, in handleSubmit
  Module collective.easyform.browser.view, line 158, in processActions
  Module collective.easyform.actions, line 518, in onSuccess
  Module collective.easyform.actions, line 449, in get_mail_text
  Module collective.easyform.actions, line 174, in get_mail_body
  Module collective.easyform.api, line 346, in filter_widgets
  Module z3c.form.widget, line 153, in render
  Module zope.component._api, line 104, in getMultiAdapter
ComponentLookupError: ((<EasyForm at /Plone/form>, <WSGIRequest, URL=http://localhost:8080/Plone/form/view>, <collective.easyform.actions.DummyFormView object at 0x7f1a6f9e2310>, <collective.easyform.fields.RichLabel object at 0x7f1a6fdce3d0 plone.supermodel.generated..richlabel>, <RichLabelWidget 'form.widgets.richlabel'>), <InterfaceClass zope.pagetemplate.interfaces.IPageTemplate>, 'display')
@MrTango MrTango self-assigned this Aug 31, 2022
@MrTango
Copy link
Contributor Author

MrTango commented Aug 31, 2022

A workaround is, to exclude these HTML-Label fields from the email and thankyou page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant