Skip to content

Commit

Permalink
-- CRM-12809 fix for point no 4
Browse files Browse the repository at this point in the history
----------------------------------------
* CRM-12809: Reserved CustomGroups
  http://issues.civicrm.org/jira/browse/CRM-12809
  • Loading branch information
Ravish Nair committed Jun 14, 2013
1 parent d06700a commit db7b725
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CRM/UF/Page/ProfileEditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ static function convertCiviModelToBackboneModel($extends, $title, $availableFiel
'custom_group_id' => $customGroup->id,
'extends_entity_column_id' => $customGroup->extends_entity_column_id,
'extends_entity_column_value' => CRM_Utils_Array::explodePadded($customGroup->extends_entity_column_value),
'is_reserved' => $customGroup->is_reserved ? TRUE : FALSE,
);
$result['sections'][$sectionName] = $section;
}
Expand Down
2 changes: 1 addition & 1 deletion js/view/crm.designer.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@
items.push({data: paletteFieldModel.getLabel(), attr: {'class': 'crm-designer-palette-field', 'data-plm-cid': paletteFieldModel.cid}});
});
}
if (section.is_addable) {
if (section.is_addable && !section.is_reserved) {
items.push({data: 'placeholder', attr: {'class': 'crm-designer-palette-add', 'data-entity': ufEntityModel.get('entity_name'), 'data-section': sectionKey}});
}
if (items.length > 0) {
Expand Down

0 comments on commit db7b725

Please sign in to comment.