fix: [server:edit] Extra field in group by leading to object duplication

pull/8022/head
Sami Mokaddem 2021-12-13 08:10:03 +01:00
parent 666ffcbe25
commit f8d2782fb9
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 1 deletions

View File

@ -643,7 +643,7 @@ class ServersController extends AppController
$objects = $this->ObjectTemplate->find('all', [
'recursive' => -1,
'fields' => ['uuid', 'name'],
'group' => ['uuid', 'name', 'id'],
'group' => ['uuid', 'name'],
]);
$allTypes = [
'attribute' => array_unique(Hash::extract(Hash::extract($this->Attribute->categoryDefinitions, '{s}.types'), '{n}.{n}')),