mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-29 18:20:01 +00:00
Merge pull request #6880 from firefly-iii/JC5-patch-1
Update CreatesObjectGroups.php
This commit is contained in:
@@ -48,6 +48,7 @@ trait CreatesObjectGroups
|
|||||||
*/
|
*/
|
||||||
protected function findOrCreateObjectGroup(string $title): ?ObjectGroup
|
protected function findOrCreateObjectGroup(string $title): ?ObjectGroup
|
||||||
{
|
{
|
||||||
|
$title = substr(0,255, $title);
|
||||||
$maxOrder = $this->getObjectGroupMaxOrder();
|
$maxOrder = $this->getObjectGroupMaxOrder();
|
||||||
if (!$this->hasObjectGroup($title)) {
|
if (!$this->hasObjectGroup($title)) {
|
||||||
return ObjectGroup::create(
|
return ObjectGroup::create(
|
||||||
|
Reference in New Issue
Block a user