Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Planning items created via an event are not always scheduled, but are being kept in draft mode [SDBELGA-879] #2113

Merged
merged 3 commits into from
Oct 16, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions client/components/ContentProfiles/ContentProfileModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,11 @@ class ContentProfileModalComponent extends React.Component<IProps, IState> {
fields.forEach((item, index) => {
profile.editor[item.name] = {...item.field};
profile.editor[item.name].index = index;

// If the field is disabled in the editor, mark it as not required to avoid backend validation issues.
if (item.field?.enabled == false) {
devketanpro marked this conversation as resolved.
Show resolved Hide resolved
profile.schema[item.name].required = false;
}
});

return key === 'profile' ?
Expand Down
Loading