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