bobbingwide / field-block-for-acf-pro

Field block for ACF PRO
https://www.oik-plugins.com/oik-plugins/field-block-for-acf-pro/
GNU General Public License v2.0
3 stars 0 forks source link

Cater for Inactive groups #17

Open bobbingwide opened 1 year ago

bobbingwide commented 1 year ago

While attempting to develop PHPUnit tests for the ACF field block I deactivated the Layout group that contained some cloned fields. The fields for this inactive group were still being included in the list of field names, overriding the original field called text.

Requirements

Fields from any group that has been marked as Inactive shouldn't be included in the selection list for the ACF field block

bobbingwide commented 1 year ago

Solution

Check that the field group is active in acf_field_block_get_possible_field_names()