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

Matrix field handle validation #12501

Merged
merged 5 commits into from
Jan 4, 2023
Merged

Conversation

brianjhanson
Copy link
Contributor

Currently, matrix handle length validation doesn't include the block type handle in the length, this makes it possible for you to create an overall field handle that's longer than the DB will allow. When this occurs things get left in a bad state, where some fields are saved and others fail.

This fixes that issue by adding validation to matrix field handles to make sure they're not too long when including the block type handle in the field name.

Fixes #12422

@brianjhanson brianjhanson requested a review from a team as a code owner January 4, 2023 17:42
Currently, matrix handle length validation doesn't include the block
type handle in the length, this makes it possible for you to create an
overall field handle that's longer than the DB will allow. When this
occurs things get left in a bad state, where some fields are saved and
others fail.

This fixes that issue by adding validation to matrix field handles to
make sure they're not too long when including the block type handle in
the field name.

Fixes #12422
@brianjhanson brianjhanson force-pushed the bugfix/cms-12422-matrix-field-handle branch from aff4a48 to e664471 Compare January 4, 2023 17:49
@brandonkelly brandonkelly self-requested a review as a code owner January 4, 2023 21:35
@brandonkelly brandonkelly merged commit 9cd82ae into v3 Jan 4, 2023
@brandonkelly brandonkelly deleted the bugfix/cms-12422-matrix-field-handle branch January 4, 2023 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants