From bd98dfc76b651e4019de25adbdac768ad91ee2b5 Mon Sep 17 00:00:00 2001 From: Okke Harsta Date: Thu, 17 Oct 2024 11:56:06 +0200 Subject: [PATCH] Bugfix for message Co request (cherry picked from commit a7e0b3a8a48c01ef6967c1502efd703642fc8583) --- server/api/collaboration_request.py | 2 +- server/test/api/test_collaboration_request.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/server/api/collaboration_request.py b/server/api/collaboration_request.py index 3b8a68739..c7ca8d8ab 100644 --- a/server/api/collaboration_request.py +++ b/server/api/collaboration_request.py @@ -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 diff --git a/server/test/api/test_collaboration_request.py b/server/test/api/test_collaboration_request.py index 728efee14..dbbb88acc 100644 --- a/server/test/api/test_collaboration_request.py +++ b/server/test/api/test_collaboration_request.py @@ -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: