From 1a0047205dcac7266c0cd51164ae02b512895987 Mon Sep 17 00:00:00 2001 From: James Cole Date: Tue, 17 Jan 2023 09:58:17 +0100 Subject: [PATCH] Update CreatesObjectGroups.php An extra trim for extra long group names. --- app/Repositories/ObjectGroup/CreatesObjectGroups.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Repositories/ObjectGroup/CreatesObjectGroups.php b/app/Repositories/ObjectGroup/CreatesObjectGroups.php index 14761dcb0e..11387b1238 100644 --- a/app/Repositories/ObjectGroup/CreatesObjectGroups.php +++ b/app/Repositories/ObjectGroup/CreatesObjectGroups.php @@ -48,6 +48,7 @@ trait CreatesObjectGroups */ protected function findOrCreateObjectGroup(string $title): ?ObjectGroup { + $title = substr(0,255, $title); $maxOrder = $this->getObjectGroupMaxOrder(); if (!$this->hasObjectGroup($title)) { return ObjectGroup::create(