Skip to content

Commit 0a07985

Browse files
authored
Merge branch 'main' into datatable
2 parents d60a8b0 + 95a6f99 commit 0a07985

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

CHANGES.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ Changelog
1212
[mamico]
1313
- Subject templating
1414
[folix-01]
15-
- Nothing changed yet.
16-
15+
- Do not set values in __init__ in *SubmitPost* because the user there is not already set and can lead to problems.
16+
[cekk]
1717

1818
3.2.3 (2025-03-07)
1919
------------------

src/collective/volto/formsupport/restapi/services/submit_form/post.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,12 @@ def __init__(self, context, data):
4949

5050

5151
class SubmitPost(Service):
52-
def __init__(self, context, request):
53-
super().__init__(context, request)
52+
block = {}
53+
block_id = ""
54+
form_data_adapter = None
55+
form_data = {}
5456

55-
self.block = {}
57+
def reply(self):
5658
self.form_data_adapter = getMultiAdapter(
5759
(self.context, self.request), IPostAdapter
5860
)
@@ -61,8 +63,6 @@ def __init__(self, context, request):
6163

6264
if self.block_id:
6365
self.block = self.get_block_data(block_id=self.block_id)
64-
65-
def reply(self):
6666
store_action = self.block.get("store", False)
6767
send_action = self.block.get("send", [])
6868

0 commit comments

Comments
 (0)