Open-source serverless enterprise CMS. Includes a headless CMS, page builder, form builder, and file manager. Easy to customize and expand. Deploys to AWS.
This PR removes throwing of errors when dealing with titleFieldId, descriptionFieldId, and imageFieldId in the CMS model editor. If an inapplicable field is sent to the API (which is not even possible through the UI, you can only do this via a programmatic API call), the API will no longer throw errors. Instead, it will gracefully fall back to the applicable fields, if possible. Otherwise, the field roles will simply be set to: id for titleFieldId, and null for descriptionFieldId and imageFieldId.
Changes
This PR removes throwing of errors when dealing with
titleFieldId
,descriptionFieldId
, andimageFieldId
in the CMS model editor. If an inapplicable field is sent to the API (which is not even possible through the UI, you can only do this via a programmatic API call), the API will no longer throw errors. Instead, it will gracefully fall back to the applicable fields, if possible. Otherwise, the field roles will simply be set to:id
fortitleFieldId
, andnull
fordescriptionFieldId
andimageFieldId
.How Has This Been Tested?