fix(edit-content): join category inodes for API submission#35249
Merged
fix(edit-content): join category inodes for API submission#35249
Conversation
…or API processFieldValue() was passing category arrays as-is to the API. The backend expects a comma-separated string of inodes. Closes #33931
Contributor
Rollback Safety Analysis
Result: Safe To Rollback -- label applied. The diff contains only two frontend TypeScript files. All 14 rollback-unsafe categories (C-1 through M-4) were checked; none apply. No DB migrations, no ES mapping changes, no API contract changes, no data model changes. Rolling back simply reintroduces the original category-not-saving bug with no broader impact. |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR addresses category fields not persisting in the New Edit Content experience by normalizing the category form value into the backend-expected submission format (comma-separated string) before calling the save/workflow API.
Changes:
- Added CATEGORY-specific handling in
processFieldValue()to serializestring[]category inode arrays as a comma-separated string for API submission.
adrianjm-dotCMS
approved these changes
Apr 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
processFieldValue()to join the array of category inodes into a comma-separated string before sending to the APIstring[]of inodes viaonChange(), but the backend expects a comma-separated stringCloses #33931
Acceptance Criteria
Test Plan
yarn nx test edit-content --testPathPattern=functions.util— all tests passChanged Files
libs/edit-content/src/lib/utils/functions.util.ts:615-618processFieldValue()This PR fixes: #33931