Skip to content

Commit

Permalink
fix order
Browse files Browse the repository at this point in the history
  • Loading branch information
folix-01 committed Jul 25, 2024
1 parent 2fa30ac commit 218a4ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/collective/feedback/restapi/services/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ def publishTraverse(self, request, id):
def reply(self):
alsoProvides(self.request, IDisableCSRFProtection)

tool = getUtility(ICollectiveFeedbackStore)

if self.params:
id = self.params[0]

Expand All @@ -41,8 +43,6 @@ def reply(self):

form_data = self.extract_data(form_data)

tool = getUtility(ICollectiveFeedbackStore)

try:
res = tool.update(id, form_data)
except ValueError as e:
Expand Down

0 comments on commit 218a4ed

Please sign in to comment.