From 14b39dce61a0349bbd53303cd5d5e3c1489ac79b Mon Sep 17 00:00:00 2001 From: Johann Rudloff Date: Tue, 18 Apr 2023 19:05:23 +0200 Subject: [PATCH] Make sure a value for `content` is always set when creating a team, since default handling is wonky --- lib/Controller/APIController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Controller/APIController.php b/lib/Controller/APIController.php index f9d3cfa..c543155 100644 --- a/lib/Controller/APIController.php +++ b/lib/Controller/APIController.php @@ -237,6 +237,7 @@ class APIController extends Controller { $team = Team::fromParams([ "teamName" => $this->request->post["name"], "ownerUserId" => $this->userId, + "content" => "", ]); $team = $this->teamMapper->insert($team); $founderMember = Member::fromParams([ -- 2.38.5