Skip to content

Commit

Permalink
Always search sub fields with af_get_field
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianlindfors committed Jun 21, 2018
1 parent cd29e6a commit e30e128
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/api-forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ function af_get_field( $field_key_or_name, $fields = false ) {

}

// Also search sub fields if field is clone
if ( 'clone' == $field['type'] && isset( $field['sub_fields'] ) ) {
// Also search sub fields
if ( isset( $field['sub_fields'] ) ) {

foreach ( $field['value'] as $sub_field_name => $sub_field_value ) {

Expand Down

0 comments on commit e30e128

Please sign in to comment.