use correct array key

This commit is contained in:
Marc Michalsky 2023-08-29 16:39:28 +02:00
parent 63d713f9f0
commit ab5b0b3929
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9

View file

@ -26,7 +26,7 @@ class CRM_Twingle_Page_Profiles extends CRM_Core_Page {
$profiles[$profile_id]['is_default'] = $profile->is_default(); $profiles[$profile_id]['is_default'] = $profile->is_default();
$profiles[$profile_id]['selectors'] = $profile->getProjectIds(); $profiles[$profile_id]['selectors'] = $profile->getProjectIds();
foreach (CRM_Twingle_Profile::allowedAttributes() as $attribute) { foreach (CRM_Twingle_Profile::allowedAttributes() as $attribute) {
$profiles[$profile_name][$attribute] = $profile->getAttribute($attribute); $profiles[$profile_id][$attribute] = $profile->getAttribute($attribute);
} }
} }
$this->assign('profiles', $profiles); $this->assign('profiles', $profiles);