WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

CSV-Export does not work when form block is nested #86

@mbarde

Description

@mbarde

What?

When the form block is for example within an columns block from https://github.com/eea/volto-columns-block, submitted data can be displayed within the UI but the CSV export throws an AttributeError.

Fix

Can be fixed by using get_blocks from utils.py like it is already done in the FormData class: https://github.com/collective/collective.volto.formsupport/blob/main/src/collective/volto/formsupport/restapi/services/form_data/form_data.py#L85
Works because get_blocks takes care of finding nested form blocks as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions