File tree 3 files changed +10
-3
lines changed
src/collective/easyform/browser
3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ Changelog
32
32
- Schemaeditor UI: close modals and reload fields(sets) when saving.
33
33
[petschki]
34
34
35
+ - Fix bug which did not render correctly GroupForm widgets (see #370)
36
+ [petschki]
37
+
35
38
36
39
4.1.0 (2022-08-10)
37
40
------------------
Original file line number Diff line number Diff line change 48
48
"plone.schema" ,
49
49
"plone.schemaeditor>=4.0.0b1" ,
50
50
"plone.supermodel" ,
51
+ "plone.restapi" ,
51
52
"Products.CMFPlone>=6.0.0b1" ,
52
53
"Products.validation" ,
53
54
"setuptools" ,
Original file line number Diff line number Diff line change @@ -300,12 +300,14 @@ def updateActions(self):
300
300
if "reset" in self .actions :
301
301
self .actions ["reset" ].title = self .context .resetLabel
302
302
303
- def updateWidgets (self ):
304
- super (EasyFormForm , self ).updateWidgets ()
303
+ def markWidgets (self ):
305
304
for w in self .widgets .values ():
306
305
if not IEasyFormWidget .providedBy (w ):
307
- # add marker for custom widget renderer
308
306
alsoProvides (w , IEasyFormWidget )
307
+ for g in self .groups :
308
+ for w in g .widgets .values ():
309
+ if not IEasyFormWidget .providedBy (w ):
310
+ alsoProvides (w , IEasyFormWidget )
309
311
310
312
def formMaybeForceSSL (self ):
311
313
"""Redirect to an https:// URL if the 'force SSL' option is on.
@@ -328,6 +330,7 @@ def update(self):
328
330
"""Update form - see interfaces.IForm"""
329
331
self .formMaybeForceSSL ()
330
332
super (EasyFormForm , self ).update ()
333
+ self .markWidgets ()
331
334
self .template = self .form_template
332
335
if self .request .method != "POST" or self .context .thanksPageOverride :
333
336
# go with all but default thank you page rendering
You can’t perform that action at this time.
0 commit comments