From a902f9f9268899c31ca21296d19d8c247a370a43 Mon Sep 17 00:00:00 2001 From: Bradley Taylor Date: Sat, 24 Sep 2022 12:32:10 +0100 Subject: [PATCH] Ensure children key is always set in tag buildTree --- CRM/Core/BAO/Tag.php | 1 + 1 file changed, 1 insertion(+) diff --git a/CRM/Core/BAO/Tag.php b/CRM/Core/BAO/Tag.php index 10541942b0..d02fb85db4 100644 --- a/CRM/Core/BAO/Tag.php +++ b/CRM/Core/BAO/Tag.php @@ -89,6 +89,7 @@ class CRM_Core_BAO_Tag extends CRM_Core_DAO_Tag { $thisref['name'] = $dao->name; $thisref['description'] = $dao->description; $thisref['is_selectable'] = $dao->is_selectable; + $thisref['children'] = []; if (!$dao->parent_id) { $this->tree[$dao->id] = &$thisref; -- 2.25.1