|
@@ 2116-2134 (lines=19) @@
|
| 2113 |
|
|
| 2114 |
|
$hierarchy = false; |
| 2115 |
|
|
| 2116 |
|
if ( 'data' === $context && ! $autocomplete ) { |
| 2117 |
|
if ( 'single' === pods_v( static::$type . '_format_type', $options, 'single' ) && in_array( |
| 2118 |
|
pods_v( static::$type . '_format_single', $options, 'dropdown' ), array( |
| 2119 |
|
'dropdown', |
| 2120 |
|
'radio', |
| 2121 |
|
), true |
| 2122 |
|
) |
| 2123 |
|
) { |
| 2124 |
|
$hierarchy = true; |
| 2125 |
|
} elseif ( 'multi' === pods_v( static::$type . '_format_type', $options, 'single' ) && in_array( |
| 2126 |
|
pods_v( static::$type . '_format_multi', $options, 'checkbox' ), array( |
| 2127 |
|
'multiselect', |
| 2128 |
|
'checkbox', |
| 2129 |
|
), true |
| 2130 |
|
) |
| 2131 |
|
) { |
| 2132 |
|
$hierarchy = true; |
| 2133 |
|
} |
| 2134 |
|
} |
| 2135 |
|
|
| 2136 |
|
if ( $hierarchy && $options['table_info']['object_hierarchical'] && ! empty( $options['table_info']['field_parent'] ) ) { |
| 2137 |
|
$params['select'] .= ', ' . $options['table_info']['field_parent_select']; |
|
@@ 2383-2391 (lines=9) @@
|
| 2380 |
|
|
| 2381 |
|
$autocomplete = false; |
| 2382 |
|
|
| 2383 |
|
if ( 'single' === pods_v( static::$type . '_format_type', $options, 'single' ) ) { |
| 2384 |
|
if ( in_array( pods_v( static::$type . '_format_single', $options, 'dropdown' ), array( 'autocomplete', 'list' ), true ) ) { |
| 2385 |
|
$autocomplete = true; |
| 2386 |
|
} |
| 2387 |
|
} elseif ( 'multi' === pods_v( static::$type . '_format_type', $options, 'single' ) ) { |
| 2388 |
|
if ( in_array( pods_v( static::$type . '_format_multi', $options, 'checkbox' ), array( 'autocomplete', 'list' ), true ) ) { |
| 2389 |
|
$autocomplete = true; |
| 2390 |
|
} |
| 2391 |
|
} |
| 2392 |
|
|
| 2393 |
|
return $autocomplete; |
| 2394 |
|
} |