You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
you seem to fetch the profiles based on the title (ie. stuff the admin can change) instead of the name (stuff the admin can't change)
So guess what: my admin changed the title and it seems that it got seriously confused (or might be just because it's in a different language than english)
so instead of
$profArray = array('Current User Profile' => 1, 'Other Parent Or Guardian' => 2, 'First Emergency Contacts' => 3, 'Second Emergency Contacts' => 4, 'New Individual' => 6);
$profiles = CRM_Core_DAO::executeQuery(" SELECT id FROM civicrm_uf_group WHERE (title = 'Current User Profile' OR title = 'Other Parent Or Guardian' OR title = 'First Emergency Contacts' OR title = 'Second Emergency Contacts') AND is_active = 1");
you should use
name= "Other_Parent_Or_Guardian"...
I haven't checked how you create the profiles, but to make it more readable, you can set your own name instead of generating it from the title automatically (if you use the api to create at least)
X+
The text was updated successfully, but these errors were encountered:
Hi,
you seem to fetch the profiles based on the title (ie. stuff the admin can change) instead of the name (stuff the admin can't change)
So guess what: my admin changed the title and it seems that it got seriously confused (or might be just because it's in a different language than english)
so instead of
you should use
name= "Other_Parent_Or_Guardian"...
I haven't checked how you create the profiles, but to make it more readable, you can set your own name instead of generating it from the title automatically (if you use the api to create at least)
X+
The text was updated successfully, but these errors were encountered: