Merge branch 'impove_default_profile_behaviour'
This commit is contained in:
commit
b480d87ed7
4 changed files with 31 additions and 24 deletions
|
@ -25,6 +25,7 @@ class CRM_Twingle_Page_Profiles extends CRM_Core_Page {
|
|||
foreach (CRM_Twingle_Profile::getProfiles() as $profile_id => $profile) {
|
||||
$profiles[$profile_id]['id'] = $profile_id;
|
||||
$profiles[$profile_id]['name'] = $profile->getName();
|
||||
$profiles[$profile_id]['is_default'] = $profile->is_default();
|
||||
foreach (CRM_Twingle_Profile::allowedAttributes() as $attribute) {
|
||||
$profiles[$profile_id][$attribute] = $profile->getAttribute($attribute);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue