Skip to content

Commit

Permalink
fix endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
folix-01 committed Jul 26, 2024
1 parent 6467b82 commit 4e0d5fe
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 @@ -77,6 +77,6 @@ def validate_form(self, form_data):
check all required fields and parameters
"""
for field in ["read"]:
value = form_data.get(field, "")
if not value:
value = form_data.get(field, None)
if value is None:
raise BadRequest("Campo obbligatorio mancante: {}".format(field))

0 comments on commit 4e0d5fe

Please sign in to comment.