From 262b14a9773b4c0cec902bc58a70a86c4daac564 Mon Sep 17 00:00:00 2001 From: Diogo Peralta Cordeiro Date: Mon, 14 Feb 2022 00:41:57 +0000 Subject: [PATCH] [COMPONENT][Collection] Organisation no longer is an actor type but rather a type of Actor Group --- components/Collection/Collection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/Collection/Collection.php b/components/Collection/Collection.php index 17485a182a..bceafa02c5 100644 --- a/components/Collection/Collection.php +++ b/components/Collection/Collection.php @@ -104,7 +104,7 @@ class Collection extends Component if (\in_array($type, ['actor', 'actors'])) { $type_consts = null; } else { - $type_consts[] = \constant(Actor::class . '::' . mb_strtoupper($type)); + $type_consts[] = \constant(Actor::class . '::' . mb_strtoupper($type === 'organisation' ? 'group' : $type)); } } }