Skip to content

Commit

Permalink
Bugfix for message Co request
Browse files Browse the repository at this point in the history
(cherry picked from commit a7e0b3a)
  • Loading branch information
oharsta authored and baszoetekouw committed Oct 17, 2024
1 parent f412fc6 commit bd98dfc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion server/api/collaboration_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def request_collaboration():

cleanse_short_name(data)

message = data["message"]
message = data.get("message")
auto_create = organisation.collaboration_creation_allowed
entitlement = current_app.app_config.collaboration_creation_allowed_entitlement
auto_aff = user.entitlement and entitlement in user.entitlement
Expand Down
1 change: 0 additions & 1 deletion server/test/api/test_collaboration_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ def test_request_collaboration(self):
data = {
"name": "New Collaboration",
"short_name": "new_collaboration_short",
"message": "pretty please",
"organisation_id": organisation.id
}
with self.app.mail.record_messages() as outbox:
Expand Down

0 comments on commit bd98dfc

Please sign in to comment.