@@ 1481-1482 (lines=2) @@ | ||
1478 | ||
1479 | if ( 'single' == pods_var( self::$type . '_format_type', $options, 'single' ) && 'autocomplete' == pods_var( self::$type . '_format_single', $options, 'dropdown' ) ) |
|
1480 | $autocomplete = true; |
|
1481 | elseif ( 'multi' == pods_var( self::$type . '_format_type', $options, 'single' ) && 'autocomplete' == pods_var( self::$type . '_format_multi', $options, 'checkbox' ) ) |
|
1482 | $autocomplete = true; |
|
1483 | ||
1484 | $hierarchy = false; |
|
1485 | ||
@@ 1489-1490 (lines=2) @@ | ||
1486 | if ( 'data' == $context && !$autocomplete ) { |
|
1487 | if ( 'single' == pods_var( self::$type . '_format_type', $options, 'single' ) && in_array( pods_var( self::$type . '_format_single', $options, 'dropdown' ), array( 'dropdown', 'radio' ) ) ) |
|
1488 | $hierarchy = true; |
|
1489 | elseif ( 'multi' == pods_var( self::$type . '_format_type', $options, 'single' ) && in_array( pods_var( self::$type . '_format_multi', $options, 'checkbox' ), array( 'multiselect', 'checkbox' ) ) ) |
|
1490 | $hierarchy = true; |
|
1491 | } |
|
1492 | ||
1493 | if ( $hierarchy && $options[ 'table_info' ][ 'object_hierarchical' ] && !empty( $options[ 'table_info' ][ 'field_parent' ] ) ) |