Skip to content
New issue

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

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

Already on GitHub? # to your account

Can't delete items from a 2-deep level subform #30

Open
keul opened this issue Sep 2, 2015 · 2 comments
Open

Can't delete items from a 2-deep level subform #30

keul opened this issue Sep 2, 2015 · 2 comments

Comments

@keul
Copy link

keul commented Sep 2, 2015

Originated from https://community.plone.org/t/z3c-form-deleting-subitems-in-a-very-complex-form/906


I'm working on a complex z3c.form-base Plone controlpanel and I'm finding an issue deleting 2nd level subitems

In two words: I've a main interface IConfiguration1, one of its fields (let say field1 is a tuple of a value_type IConfiguration2.
This is a know situations that already worked in a lot of other cases: z3c.form display a subform where you can add/edit/remove submitems.

This time in the IConfiguration2 I've another tuple field (field2) composed by items of type IConfiguration3.

I never done a so complex form before (and probably is not a good idea)... however: it works normally, I can add 2nd level subitems, edit them, but I can't delete.

When I try to delete one item from the field2 set, the UI will reloads the same page with the item still there; the only difference is the selection checkbox I checked before is now disabled.

The only way that works is to delete the super-item (one of the field1 values) and re-add all.

Apart of that: all works normally.

@idgserpro
Copy link

@keul have you come to any conclusion as to why it doesn't work?

@keul
Copy link
Author

keul commented Jul 5, 2019

@idgserpro hell no!

IIRC I tried to debug this but z3c.form source was (is?) so complex that can reach singularity.

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

No branches or pull requests

2 participants