diff --git a/client/components/ContentProfiles/ContentProfileModal.tsx b/client/components/ContentProfiles/ContentProfileModal.tsx index 5f9b79c83..03a5ea837 100644 --- a/client/components/ContentProfiles/ContentProfileModal.tsx +++ b/client/components/ContentProfiles/ContentProfileModal.tsx @@ -457,7 +457,13 @@ class ContentProfileModalComponent extends React.Component { > { + profile: any; constructor(props) { super(props); @@ -50,6 +51,13 @@ export class FieldTab extends React.Component { this.updateFieldOrder = this.updateFieldOrder.bind(this); this.insertField = this.insertField.bind(this); this.removeField = this.removeField.bind(this); + this.profile = { + ...this.props.profile, + editor: { + ...this.props.profile.editor, + related_items: {enabled: false} + } + }; } openEditor(field: IProfileFieldEntry) { @@ -222,11 +230,9 @@ export class FieldTab extends React.Component { } render() { - debugger const unusedFields = getUnusedProfileFields(this.props.profile, this.props.groupFields); const systemRequiredFields = this.getSystemRequiredFields(); - console.log(this.props.profile); return (
diff --git a/client/components/fields/editor/index.tsx b/client/components/fields/editor/index.tsx index 38182e43f..8098cad14 100644 --- a/client/components/fields/editor/index.tsx +++ b/client/components/fields/editor/index.tsx @@ -124,7 +124,7 @@ export const FIELD_TO_EDITOR_COMPONENT = { contacts: EditorFieldContacts, event_contact_info: EditorFieldContacts, occur_status: EditorFieldEventOccurenceStatus, - related_plannings: EditorFieldEventRelatedPlannings, + related_plannings: EditorFieldEventRelatedItems, related_items: EditorFieldEventRelatedItems, planning_date: EditorFieldPlanningDateTime, 'flags.marked_for_not_publication': EditorFieldNotForPublication,