AdvancedCustomFields / AdvancedCustomFields/acf

5.9.0-beta4 - Validation of required ACF field on InnerBlocks block not working

Open
#340 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
945
Forks
197
PR merge metrics
No merged PRs in 30d

Description

I created a custom InnerBlocks block and assigned a required ACF text field to the block. But when i save the post without adding data to the field, i get no validation error and i'm still able to save the post.
Is this is a bug? Or am i doing something wrong?

I'm running ACF Version 5.9.0-beta4 on Wordpress 5.4.2.

Other then that, i'm loving the InnerBlocks feature and plugin overall!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with a custom InnerBlocks block containing a required ACF text field on WordPress 5.4.2 and ACF 5.9.0-beta4. Verify whether saving without a value produces a validation error and prevents the post from being saved; the report names no files or tests to inspect.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.