diff --git a/CRM/UF/Page/ProfileEditor.php b/CRM/UF/Page/ProfileEditor.php index f30c8d5dd4eb..90f7394625ee 100644 --- a/CRM/UF/Page/ProfileEditor.php +++ b/CRM/UF/Page/ProfileEditor.php @@ -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; } diff --git a/js/view/crm.designer.js b/js/view/crm.designer.js index e59c1d98e36c..7011f5ff5165 100644 --- a/js/view/crm.designer.js +++ b/js/view/crm.designer.js @@ -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) {