@@ 1490-1491 (lines=2) @@ | ||
1487 | ||
1488 | if ( 'single' == pods_var( self::$type . '_format_type', $options, 'single' ) && 'autocomplete' == pods_var( self::$type . '_format_single', $options, 'dropdown' ) ) |
|
1489 | $autocomplete = true; |
|
1490 | elseif ( 'multi' == pods_var( self::$type . '_format_type', $options, 'single' ) && 'autocomplete' == pods_var( self::$type . '_format_multi', $options, 'checkbox' ) ) |
|
1491 | $autocomplete = true; |
|
1492 | ||
1493 | $hierarchy = false; |
|
1494 | ||
@@ 1498-1499 (lines=2) @@ | ||
1495 | if ( 'data' == $context && !$autocomplete ) { |
|
1496 | if ( 'single' == pods_var( self::$type . '_format_type', $options, 'single' ) && in_array( pods_var( self::$type . '_format_single', $options, 'dropdown' ), array( 'dropdown', 'radio' ) ) ) |
|
1497 | $hierarchy = true; |
|
1498 | elseif ( 'multi' == pods_var( self::$type . '_format_type', $options, 'single' ) && in_array( pods_var( self::$type . '_format_multi', $options, 'checkbox' ), array( 'multiselect', 'checkbox' ) ) ) |
|
1499 | $hierarchy = true; |
|
1500 | } |
|
1501 | ||
1502 | if ( $hierarchy && $options[ 'table_info' ][ 'object_hierarchical' ] && !empty( $options[ 'table_info' ][ 'field_parent' ] ) ) |