Skip to content

Commit ed16f59

Browse files
committed
fix: #84
1 parent b2729cc commit ed16f59

File tree

1 file changed

+3
-3
lines changed
  • src/collective/volto/formsupport/restapi/services/form_data

1 file changed

+3
-3
lines changed

src/collective/volto/formsupport/restapi/services/form_data/csv.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ def __init__(self, context, request):
1919
super().__init__(context, request)
2020
self.form_fields_order = []
2121
self.form_block = None
22-
self.block_id = self.request.get("block_id")
22+
self.form_block_id = self.request.get("block_id")
2323

2424
blocks = getattr(context, "blocks", {})
2525
if not blocks:
2626
raise NotFound("No blocks found")
2727
for id, block in blocks.items():
28-
if self.block_id and id != self.block_id:
28+
if self.form_block_id and id != self.form_block_id:
2929
continue
3030
block_type = block.get("@type", "")
3131
if block_type == "form":
@@ -110,7 +110,7 @@ def get_data(self):
110110
fields_labels = self.get_fields_labels()
111111

112112
for item in store.search():
113-
if self.block_id and item.attrs.get("block_id") != self.block_id:
113+
if self.form_block_id and item.attrs.get("block_id") != self.form_block_id:
114114
continue
115115
data = {}
116116

0 commit comments

Comments
 (0)