Skip to content
Snippets Groups Projects
Commit db7b725d authored by Ravish Nair's avatar Ravish Nair
Browse files

-- CRM-12809 fix for point no 4

----------------------------------------
* CRM-12809: Reserved CustomGroups
  http://issues.civicrm.org/jira/browse/CRM-12809
parent d06700a7
No related branches found
No related tags found
No related merge requests found
......@@ -212,6 +212,7 @@ class CRM_UF_Page_ProfileEditor extends CRM_Core_Page {
'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;
}
......
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment