Update CreatesObjectGroups.php

Fix thing
This commit is contained in:
James Cole 2023-01-17 10:15:50 +01:00 committed by GitHub
parent 2cb2e2e635
commit d0d3921ff6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@ trait CreatesObjectGroups
*/ */
protected function findOrCreateObjectGroup(string $title): ?ObjectGroup protected function findOrCreateObjectGroup(string $title): ?ObjectGroup
{ {
$title = substr(0,255, $title); $title = substr($title, 0, 255);
$maxOrder = $this->getObjectGroupMaxOrder(); $maxOrder = $this->getObjectGroupMaxOrder();
if (!$this->hasObjectGroup($title)) { if (!$this->hasObjectGroup($title)) {
return ObjectGroup::create( return ObjectGroup::create(