Update CreatesObjectGroups.php

An extra trim for extra long group names.
This commit is contained in:
James Cole 2023-01-17 09:58:17 +01:00 committed by GitHub
parent 10db3d63ac
commit 1a0047205d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(