Skip to content
Snippets Groups Projects
Commit 79cba4aa authored by Klaas Eikelboom's avatar Klaas Eikelboom
Browse files

Remove Notice in case a group has no fields

parent 7a18a3a2
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,7 @@ class Config extends Container {
*/
public function getCustomFieldsOfCustomGroup($custom_group_id) {
$customFieldsPerGroup = $this->getParameter('custom_fields_per_group');
return $customFieldsPerGroup[$custom_group_id];
return $customFieldsPerGroup[$custom_group_id] ?? [];
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment